Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Postgresql uuid syntax error

$
0
0

I am trying to insert/update a foreign key field which is also a uuid to use the correct fk id for this set of data:

zuri=# ALTER TABLE newarts ALTER COLUMN jurisdiction_id SET DEFAULT a82857b6-e336-4c6c-8499-4...
ERROR:  syntax error at or near "c6c"
LINE 1: ...COLUMN jurisdiction_id SET DEFAULT a82857b6-e336-4c6c-8499-4...  
                                                             ^

This is just the latest iteration of this code, but it not the first time I have gotten this exact syntax error.

zuri=# UPDATE newarts set jurisdiction_id=a82857b6-e336-4c6c-8499-4...
ERROR:  syntax error at or near "c6c"
LINE 1: UPDATE newarts set jurisdiction_id=a82857b6-e336-4c6c-8499-4...
                                                          ^

I thought it might be an encoding issue, but that doesn’t seem to be it. The length is = 100, so that shouldn’t be it. The TYPE has already been set for uuid, so I don’t know what else to check. Thanks.


Viewing all articles
Browse latest Browse all 1138

Trending Articles