[DBD::Pg] Thinko. Thank goodness for tests
dbdpg-commits-gENoVmVU/[email protected] Wed, 29 Jan 2014 17:11:42 -0500
| Newsgroups | gmane.comp.db.postgresql.dbdpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by Greg Sabino Mullane <greg-O9fzpki4YnJWk0Htik3J/[email protected]> Thinko. Thank goodness for tests --- dbdimp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbdimp.c b/dbdimp.c index c9b37e6..84a047a 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -2765,7 +2765,7 @@ static SV * pg_destringify_array(pTHX_ imp_dbh_t *imp_dbh, unsigned char * input SV *sv = newSVpvn(string, section_size); // Mark as utf8 if needed (but never bytea) - if (0 == strncmp(coltype->type_name, "_bytea", 6) + if (0 != strncmp(coltype->type_name, "_bytea", 6) && imp_dbh->pg_utf8_flag) SvUTF8_on(sv); -- 1.8.4