You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When database has schema and you try to establish relation it throws an error because of missing quotes in join table name: ERROR: relation "schema.table2" does not exist (SQLSTATE=42P01)
The output query looks like: SELECT * FROM "schema"."table1" AS "t1" JOIN schema.table2 AS "t2" ON ("t1"."t2.id") ...
Should be like: SELECT * FROM "schema"."table1" AS "t1" JOIN "schema"."table2" AS "t2" ON ("t1"."t2.id") ...
When database has schema and you try to establish relation it throws an error because of missing quotes in join table name:
ERROR: relation "schema.table2" does not exist (SQLSTATE=42P01)
The output query looks like:
SELECT * FROM "schema"."table1" AS "t1" JOIN schema.table2 AS "t2" ON ("t1"."t2.id") ...
Should be like:
SELECT * FROM "schema"."table1" AS "t1" JOIN "schema"."table2" AS "t2" ON ("t1"."t2.id") ...
m2mQuery
method should use:join = fmter.AppendQuery(join, string(j.Relation.M2MTable.SQLName))
instead of:
join = fmter.AppendQuery(join, string(j.Relation.M2MTable.Name))
The text was updated successfully, but these errors were encountered: