DDC-1978: SQLParserUtils array_fill tries to create array with zero elements when empty parameter is bound #2651

Closed
doctrinebot opened this Issue Aug 10, 2012 · 5 comments

1 participant

@doctrinebot

Jira issue originally created by user matt-button:

When binding an empty array as a parameter (and specifying a parameter type to work around DDC-1977) SQLParserUtils::expandListParameters tries to use array_fill to generate an empty array.

https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/SQLParserUtils.php#L127

Pseudo-code that generated the bug:

$this->getEntityManager()->createNativeQuery($query, $rsm)->setParameter(1, array())->getArrayResult();
@doctrinebot

Comment created by @beberlei:

A related Github Pull-Request [GH-425] was opened
#425

@doctrinebot

Comment created by @beberlei:

A related Github Pull-Request [GH-425] was closed
#425

@doctrinebot

Comment created by @FabioBatSilva:

Fixed by : doctrine/dbal@24ec194

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-425] was closed:
doctrine/dbal#425

@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment