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
publicfunctionrightLeftJoin(PDO$pdo): void
{
$stmt = $pdo->query('SELECT adaid from ada left join ak on adaid = eladaid');
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
$stmt = $pdo->query('SELECT adaid from ak right join ada on adaid = eladaid');
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
}
I found one RIGHT JOIN in our codebase that colleague of mine used (I've never used right join actually, always just left/inner).
Anyway, if I understand it right, I should be able to switch left vs right when I switch the table names an get same results, or not?
I tried that using the test above but it fails the 2nd assertion with
to clarify: this should not mean that we don't want support for right joins, but it needs some more intensive testing on your end how the sql actually behaves and what types to expect
Hello @staabm
I found one
RIGHT JOIN
in our codebase that colleague of mine used (I've never used right join actually, always just left/inner).Anyway, if I understand it right, I should be able to switch left vs right when I switch the table names an get same results, or not?
I tried that using the test above but it fails the 2nd assertion with
But I dont think that adaid will ever be null, or will it?
The text was updated successfully, but these errors were encountered: