DBI seems to want to connect to the database first. Is there any way to avoid that?
Maybe:
You can try this:
use DBI; my $drh = DBI->install_driver('Pg') or die; my $dbh = DBI::_new_dbh($drh) or die; print $dbh->quote(q{My "" test ' data \\' for quoting'}), "\n";
Of course you would be violating all sorts of good programming practices and there is no guarantee that 1. it will work consistantly and 2. it won't segfault, but if it works, it works.
In reply to Re^3: PostGreSQL Quoting
by tantarbobus
in thread PostGreSQL Quoting
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |