[SOLVED] QueryBuilder IN Postgresql #15289
Unanswered
takealook-global
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hello
Also, note that for repeated parameters, you will need to have unique name
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a int2(smallint) on Postgresql 12.5
So if i pass 1 the query run ok.
if i pass 1,2,3 or '1','2','3',....
Have some way to get this work with placeholder?
I have used all bind types and ANY, but I get the same error.
I get this error if i use 1,2,3 int.
and this error for string '1','2'..
Invalid text representation: 7 ERROR: invalid input syntax for type smallint:
Without placeholder works.
$select->andWhere("r.sIN(".join(",",[1,2]).") AND env.s IN(1,2)",
Beta Was this translation helpful? Give feedback.
All reactions