[DBD::Pg] SvUTF8_on is NOT enough here. Total testing fail: should be catching this.
dbdpg-commits-gENoVmVU/[email protected] Sun, 1 Dec 2013 23:09:15 -0500
| Newsgroups | gmane.comp.db.postgresql.dbdpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by Greg Sabino Mullane <greg-O9fzpki4YnJWk0Htik3J/[email protected]> SvUTF8_on is NOT enough here. Total testing fail: should be catching this. --- dbdimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index dc680b2..0e3f1e7 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -3578,7 +3578,7 @@ AV * dbd_st_fetch (SV * sth, imp_sth_t * imp_sth) SvUTF8_off(sv); } else { - SvUTF8_on(sv); + sv_utf8_upgrade(sv); } } } @@ -3966,7 +3966,7 @@ int pg_db_getcopydata (SV * dbh, SV * dataline, int async) if (copystatus > 0) { sv_setpv(dataline, tempbuf); if (imp_dbh->pg_utf8_flag) - SvUTF8_on(dataline); + sv_utf8_upgrade(dataline) TRACE_PQFREEMEM; PQfreemem(tempbuf); } -- 1.8.4