Skip to content


DBAL-829: binding with PARAM_INT_ARRAY does not convert the values to integer #2063

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user anandagra:

When using PARAMINTARRAY to bind values for 'in' clause
the resulting sql has quotes around the numbers

e.g. using query builder I have

array('id' => $pnums),
array('id' => Connection::PARAMINTARRAY)


"select .... from tableName where id in ('123','456','789')"

given that the array had numeric value as strings,
$ids = array('123','456','789');

but since we are specifying PARAMINTARRAY, I think this should be taken care of by doctrine


Comment created by anandagra:

looks like PDO issue


Issue was closed with resolution "Won't Fix"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.3 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.