Skip to content

Why does PooledConn::exec return only one row #323

Answered by blackbeam
soulflyman asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

Prepared statements (whether params are named or positional) are not string substitution. Mysql server will replace each parameter with corresponding value taken from the given params. I.e. in your case server will execute in ('1401,1874') (not in (1401,1874)).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@soulflyman
Comment options

Answer selected by soulflyman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants