mirror of
https://github.com/doctrine/orm.git
synced 2026-04-25 07:28:04 +02:00
DDC-123: PDO throws an exception when parameters are missing or mismatch, DC throws php warnings #153
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 6, 2009).
Jira issue originally created by user @beberlei:
PDO throws exceptions if you try to execute a query with a wrong parameter count or parameters named incorrect.
Doctrine\ORM\Query does nothing of such kind and only throws php warnings when wrong php array keys are accessed. Attached is a patch that corrects this behaviour to give a developer more feedback on this kind of errors.
Performance wise, on each _doExecute() 1 count check of params against set parameter mappings aswell as one additional check if each passed param really exists.
@doctrinebot commented on GitHub (Nov 21, 2009):
Comment created by romanb:
This seems to be applied already.
@doctrinebot commented on GitHub (Nov 21, 2009):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Nov 21, 2009):
Comment created by @beberlei:
Oh I accidently committed this on DDC-127
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/1f5f684a80e0b9637f29