[DBD::Pg] correct inverted logical check for setting client_encoding to UTF-8

[email protected]
Newsgroups perl.dbd.pg.changes
Message-ID <[email protected]>
Committed by David Christensen <[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
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.