@nest-omni/core 4.1.2 → 4.1.3-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -171,10 +171,10 @@ const insertWithPk = function (entity) {
|
|
|
171
171
|
if (columnName) {
|
|
172
172
|
columnNames.push(columnName);
|
|
173
173
|
columnValues.push(value);
|
|
174
|
-
valuePlaceholders.push(
|
|
174
|
+
valuePlaceholders.push(`?`);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
const sql = `INSERT INTO ${tableName} (${columnNames.join(', ')}) VALUES (${valuePlaceholders.join(', ')})
|
|
177
|
+
const sql = `INSERT INTO ${tableName} (${columnNames.join(', ')}) VALUES (${valuePlaceholders.join(', ')})`;
|
|
178
178
|
try {
|
|
179
179
|
const result = yield this.query(sql, columnValues);
|
|
180
180
|
return result[0];
|
package/package.json
CHANGED