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
$builder->from('users')->joinLateral('select * from "contacts" where "contracts"."user_id" = "users"."id"', 'sub');
2533
+
$this->assertSame('select * from "users" inner join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "sub" on true', $builder->toSql());
$this->assertSame('select * from "users" inner join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "sub" on true', $builder->toSql());
$this->assertSame('select * from "users" inner join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "sub" on true', $builder->toSql());
$builder->from('users')->joinLateral('select * from "contacts" where "contracts"."user_id" = "users"."id"', 'sub');
2568
+
$this->assertSame('select * from "prefix_users" inner join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "prefix_sub" on true', $builder->toSql());
$this->assertSame('select * from "users" left join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "sub" on true', $builder->toSql());
$this->assertSame('select * from "users" right join lateral (select * from "contacts" where "contracts"."user_id" = "users"."id") as "sub" on true', $builder->toSql());
0 commit comments