This is an automated email from the git hooks/post-receive script. myon pushed a commit to branch master in repository libdbd-pg-perl.
commit dd4d322d5c538e5c2e9bad2125c4c57d39068138 Author: William Cox <mydimens...@gmail.com> Date: Sun Sep 17 14:33:18 2017 -0400 had the logic wrong --- dbdimp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index ebd5848..57660d4 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -4076,7 +4076,7 @@ int pg_db_putline (SV * dbh, SV * svbuf) if (TSTART_slow) TRC(DBILOGFP, "%sBegin pg_db_putline\n", THEADER_slow); /* We must be in COPY IN state */ - if (PGRES_COPY_IN != imp_dbh->copystate || PGRES_COPY_BOTH != imp_dbh->copystate) + if (PGRES_COPY_IN != imp_dbh->copystate && PGRES_COPY_BOTH != imp_dbh->copystate) croak("pg_putline can only be called directly after issuing a COPY FROM command\n"); if (!svbuf || !SvOK(svbuf)) @@ -4120,7 +4120,7 @@ int pg_db_getline (SV * dbh, SV * svbuf, int length) tempbuf = NULL; /* We must be in COPY OUT state */ - if (PGRES_COPY_OUT != imp_dbh->copystate || PGRES_COPY_BOTH != imp_dbh->copystate) + if (PGRES_COPY_OUT != imp_dbh->copystate && PGRES_COPY_BOTH != imp_dbh->copystate) croak("pg_getline can only be called directly after issuing a COPY TO command\n"); length = 0; /* Make compilers happy */ @@ -4163,7 +4163,7 @@ int pg_db_getcopydata (SV * dbh, SV * dataline, int async) if (TSTART_slow) TRC(DBILOGFP, "%sBegin pg_db_getcopydata\n", THEADER_slow); /* We must be in COPY OUT state */ - if (PGRES_COPY_OUT != imp_dbh->copystate || PGRES_COPY_BOTH != imp_dbh->copystate) + if (PGRES_COPY_OUT != imp_dbh->copystate && PGRES_COPY_BOTH != imp_dbh->copystate) croak("pg_getcopydata can only be called directly after issuing a COPY TO command\n"); tempbuf = NULL; @@ -4235,7 +4235,7 @@ int pg_db_putcopydata (SV * dbh, SV * dataline) if (TSTART_slow) TRC(DBILOGFP, "%sBegin pg_db_putcopydata\n", THEADER_slow); /* We must be in COPY IN state */ - if (PGRES_COPY_IN != imp_dbh->copystate || PGRES_COPY_BOTH != imp_dbh->copystate) + if (PGRES_COPY_IN != imp_dbh->copystate && PGRES_COPY_BOTH != imp_dbh->copystate) croak("pg_putcopydata can only be called directly after issuing a COPY FROM command\n"); if (imp_dbh->pg_utf8_flag && !imp_dbh->copybinary) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-pg-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits