@restura/core 0.1.0-alpha.36 → 0.1.0-alpha.37
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.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1569,10 +1569,11 @@ function insertObjectQuery(table, obj) {
|
|
|
1569
1569
|
const params = Object.values(obj);
|
|
1570
1570
|
const columns = keys.map((column) => escapeColumnName(column)).join(", ");
|
|
1571
1571
|
const values = params.map((value) => SQL`${value}`).join(", ");
|
|
1572
|
-
|
|
1572
|
+
let query = `
|
|
1573
1573
|
INSERT INTO "${table}" (${columns})
|
|
1574
1574
|
VALUES (${values})
|
|
1575
1575
|
RETURNING *`;
|
|
1576
|
+
query = query.replace(/'(\?)'/, "?");
|
|
1576
1577
|
return query;
|
|
1577
1578
|
}
|
|
1578
1579
|
function updateObjectQuery(table, obj, whereStatement) {
|