mgutz / dat

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

Doesn't support schemas #46

Closed sbowman closed 8 years ago

sbowman commented 8 years ago

When using schemas, table names are quoted incorrectly by dat in the builders. For example:

db.Update("hello.world").Set("name", "John Doe").Where("id = $1", 23).Exec()

Generates a query that looks like:

update "hello.world" set "name" = 'John Doe' where "id" = 23

It should be:

update "hello"."world" set "name" = 'John Doe' where "id" = 23
sbowman commented 8 years ago

InsertInto seems to be ok though.

sbowman commented 8 years ago

As is Select...From

mgutz commented 8 years ago

will be fixed and closed as part of #28