Subject: | Dollar Quoting is being triggered in the middle of a identifier |
An identifier containing a pair of dollar signs triggers the dollar quote handling in pg_st_split_statement, which can consume the rest of the SQL statement and trigger a secondary error of no placeholders being found.
Example:
$dbh->do('SELECT tablename AS alt$identifier$test FROM pg_tables WHERE tablename = ?', { }, '');
Error:
DBD::Pg::db do failed: called with 1 bind variables when 0 are needed at dbq.pl line 5.
Tugrul Galatali