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
Produces SELECT max(updated_at) as test(SELECT MAX("different_table"."updated_at") AS updated_at FROM "different_table" WHERE "different_table"."some_id" = '?') as other_test FROM "some_table"
Which you can note there is no comma after "as test"
Expected behavior
A valid query would be generated like this
SELECT max(updated_at) as test, (SELECT MAX("different_table"."updated_at") AS updated_at FROM "different_table" WHERE "different_table"."some_id" = '?') as other_test FROM "some_table"
Desktop (please complete the following information):
OS: Mac OSX,
Version Catalina 10.15.7
What database are you using?
Type: Postgres,
Version 10.7
Additional context
Masonite-orm version 1.0.22
The text was updated successfully, but these errors were encountered:
Describe the bug
If using select_raw, the statement must be the last statement in the chain or the compiled query in syntactically invalid
To Reproduce
Produces
SELECT max(updated_at) as test(SELECT MAX("different_table"."updated_at") AS updated_at FROM "different_table" WHERE "different_table"."some_id" = '?') as other_test FROM "some_table"
Which you can note there is no comma after "as test"
Expected behavior
A valid query would be generated like this
Desktop (please complete the following information):
What database are you using?
Additional context
Masonite-orm version 1.0.22
The text was updated successfully, but these errors were encountered: