proto.io 0.0.219 → 0.0.220
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.
|
@@ -3138,7 +3138,10 @@ class PostgresStorageClient extends SqlStorage {
|
|
|
3138
3138
|
${_.map(_values, (v, k) => _.isNil(acl)
|
|
3139
3139
|
? sql `(${{ value: k }}, ${_encodeJsonValue(index._encodeValue(v))})`
|
|
3140
3140
|
: sql `(${{ value: k }}, ${{ value: acl }}, ${_encodeJsonValue(index._encodeValue(v))})`)}
|
|
3141
|
-
ON CONFLICT (_id)
|
|
3141
|
+
ON CONFLICT (_id)
|
|
3142
|
+
DO UPDATE SET
|
|
3143
|
+
${_.isNil(acl) ? sql `` : sql `_rperm = EXCLUDED._rperm, `}
|
|
3144
|
+
value = EXCLUDED.value
|
|
3142
3145
|
`);
|
|
3143
3146
|
}
|
|
3144
3147
|
if (!_.isEmpty(nilKeys)) {
|