[DBD::Pg] correct inverted logical check for setting client_encoding to UTF-8
dbdpg-commits-gENoVmVU/[email protected] Wed, 29 Jun 2011 13:13:21 +0000
| Newsgroups | gmane.comp.db.postgresql.dbdpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by David Christensen <david-O9fzpki4YnJWk0Htik3J/[email protected]> correct inverted logical check for setting client_encoding to UTF-8 --- dbdimp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index 076bcbc..4a151b7 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -288,7 +288,7 @@ int dbd_db_login6 (SV * dbh, imp_dbh_t * imp_dbh, char * dbname, char * uid, cha /* If needed, set the client_encoding to UTF-8 */ if (imp_dbh->unicode && - (0 == strncmp(client_encoding, "UTF-8", 5))) { + (0 != strncmp(client_encoding, "UTF-8", 5))) { PQexec(imp_dbh->conn, "SET client_encoding = 'UTF-8'"); } -- 1.7.0.5