unified-storage: fixes for sqlkv to work with postgres (#115961)

* unified-storage: fixes for sqlkv to work with postgres
This commit is contained in:
Will Assis
2026-01-08 08:21:35 -05:00
committed by GitHub
parent dff9bea3e8
commit 58e9e4a56d
5 changed files with 15 additions and 7 deletions
@@ -5,7 +5,7 @@ INSERT INTO {{ .Ident .TableName }}
)
VALUES (
{{ .Arg .KeyPath }},
COALESCE({{ .Arg .Value }}, "")
{{ .Arg .Value }}
)
{{- if eq .DialectName "mysql" }}
ON DUPLICATE KEY UPDATE {{ .Ident "value" }} = {{ .Arg .Value }}