Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Places for placeholders #215

Open
0rir opened this issue Jan 1, 2022 · 1 comment
Open

Places for placeholders #215

0rir opened this issue Jan 1, 2022 · 1 comment
Assignees

Comments

@0rir
Copy link

0rir commented Jan 1, 2022

$!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.

@rbt
Copy link
Collaborator

rbt commented Jan 18, 2022

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 rbt self-assigned this Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants