The PDO SQL parser causes many bugs. All drivers suffer from it.
By default the parser replaces placeholder with
'<bound_value>'.'<bound_value>'
is a string. This can clash with the SQL syntax. PDO can make an
INSERT fail. Please learn why and stop reporting
bogus bugs.
Why does PDO parse my SQL commands?
PDO has chosen Prepared Statements as its preferred way of running database queries. The entire API is build around prepared statements. Wez has explained that primarily security considerations have caused this decision. Read PDO_MYSQLND: Prepared Statements, again for a discussion of prepared statements in the context of PDO.
Not every database system supports prepared statements. And those who do use a different syntax for placeholder. Some systems support …
[Read more]