sql: support '{abc}'
syntax for uuid[] literal
#54693
Labels
A-sql-syntax
Issues strictly related to the SQL grammar, with no semantic aspect
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
pg supports (and, importantly, emits)
uuid[]
literals in the form'{abc123-abc...}'
Cockroach currently does not, simply complaining that it is a
string
, since we do not implicitly convert the string touuid[]
, though appending an explicit cast works (e.g.'{abc123-...}'::uuid[]
).Appending a cast or using the
ARRAY[...]
syntax provide alternatives for users writing queries by hand, but unfortunately some tools, likepg_dump
emit the'{abc...}'
form.The text was updated successfully, but these errors were encountered: