Author: turnstep
Date: Mon Apr 5 12:44:51 2010
New Revision: 13884
Modified:
DBD-Pg/trunk/t/06bytea.t
Log:
Set new bytea_output parameter for servers 9.0 and beyond.
Modified: DBD-Pg/trunk/t/06bytea.t
==============================================================================
--- DBD-Pg/trunk/t/06bytea.t (original)
+++ DBD-Pg/trunk/t/06bytea.t Mon Apr 5 12:44:51 2010
@@ -23,7 +23,11 @@
my ($pglibversion,$pgversion) = ($dbh->{pg_lib_version},$dbh->{pg_server_version});
if ($pgversion >= 80100) {
- $dbh->do('SET escape_string_warning = false');
+ $dbh->do('SET escape_string_warning = false');
+}
+
+if ($pgversion >= 90000) {
+ $dbh->do(q{SET bytea_output = 'escape'});
}
my ($sth, $t);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.