@onivoro/server-typeorm-postgres 22.0.1 → 22.0.2
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.
|
@@ -108,7 +108,7 @@ let RedshiftRepository = class RedshiftRepository extends type_orm_repository_cl
|
|
|
108
108
|
mapPlaceholderExpression(length, index, column) {
|
|
109
109
|
const exp = `$${length + index + 1}`;
|
|
110
110
|
const meta = this.columns[column];
|
|
111
|
-
return meta.type === 'jsonb' ? `JSON_PARSE(
|
|
111
|
+
return meta.type === 'jsonb' ? `JSON_PARSE(${exp})` : exp;
|
|
112
112
|
}
|
|
113
113
|
async postOneWithoutReturn(entity) {
|
|
114
114
|
// PERFORM AN INSERT BUT NOT THE RETRIEVAL QUERY FOR PERFORMANCE
|
|
@@ -108,7 +108,7 @@ let RedshiftRepository = class RedshiftRepository extends type_orm_repository_cl
|
|
|
108
108
|
mapPlaceholderExpression(length, index, column) {
|
|
109
109
|
const exp = `$${length + index + 1}`;
|
|
110
110
|
const meta = this.columns[column];
|
|
111
|
-
return meta.type === 'jsonb' ? `JSON_PARSE(
|
|
111
|
+
return meta.type === 'jsonb' ? `JSON_PARSE(${exp})` : exp;
|
|
112
112
|
}
|
|
113
113
|
async postOneWithoutReturn(entity) {
|
|
114
114
|
// PERFORM AN INSERT BUT NOT THE RETRIEVAL QUERY FOR PERFORMANCE
|