mgutz / dat

Go Postgres Data Access Toolkit
Other
611 stars 62 forks source link

pq: relation "table" does not exist #28

Open rkakrik opened 9 years ago

rkakrik commented 9 years ago

Upsert generates sql with table name in double quotes. Postgres thinks it's relation, not the table name.

rkakrik commented 9 years ago

Same problem with Update()

mgutz commented 8 years ago

Is this causing a problem? All identifiers should be quoted to ensure casing is as you intended.

sbowman commented 8 years ago

A table is a relation. I think this is the same bug I reported in #46.

mgutz commented 8 years ago

I goofed up writing identifers badly. I have to bump major version to fix so as not to break existing code. v2 should be available in the next couple of days