DBIish icon indicating copy to clipboard operation
DBIish copied to clipboard

Places for placeholders

Open 0rir opened this issue 3 years ago • 1 comments

$!dbh.execute("SET log_min_messages TO $level");

$sth = $!dbh.execute( "SHOW $var-name" );

I expected DBIish via DBDish::Pg to accept ? placeholders in the above. Only with the pause caused by my error, did I consider that SET might reasonably take two placeholders.

0rir avatar Jan 01 '22 02:01 0rir

Right now everything goes through PQexecPrepared which is limited to CRUD type statements. We should have a fall-back mode for Pg which does parameter quoting/injecting and calls PQexec.

rbt avatar Jan 18 '22 14:01 rbt