Groups | Search | Server Info | Login | Register


Groups > perl.dbd.pg.changes > #17

[DBD::Pg 5/5] Use PG_ASYNC constant for pg_async & test

Newsgroups perl.dbd.pg.changes
Subject [DBD::Pg 5/5] Use PG_ASYNC constant for pg_async & test
Date 2016-04-18 17:10 +0000
Message-ID <1460999425-22634-5-git-send-email-dbdpg-commits@bucardo.org> (permalink)
References <1460999425-22634-1-git-send-email-dbdpg-commits@bucardo.org>
From dbdpg-commits@bucardo.org

Show all headers | View raw


Committed by =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= <ilmari@ilmari.org>

Subject: [DBD::Pg 5/5] Use PG_ASYNC constant for pg_async & test

---
 dbdimp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dbdimp.c b/dbdimp.c
index 0858028..58311cd 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -3389,7 +3389,7 @@ int dbd_st_execute (SV * sth, imp_sth_t * imp_sth)
 		statement[execsize] = '\0';
 
 		if (TRACE5_slow) TRC(DBILOGFP, "%sRunning %s with (%s)\n", 
-							 THEADER_slow, imp_sth->async_flag & 1 ? "PQsendQuery" : "PQexec", statement);
+							 THEADER_slow, imp_sth->async_flag & PG_ASYNC ? "PQsendQuery" : "PQexec", statement);
 			
 		if (TSQL)
 			TRC(DBILOGFP, "%s;\n\n", statement);
-- 
1.8.4

Back to perl.dbd.pg.changes | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[DBD::Pg 1/5] Factor placeholder key creation into function dbdpg-commits@bucardo.org - 2016-04-18 17:10 +0000
  [DBD::Pg 5/5] Use PG_ASYNC constant for pg_async & test dbdpg-commits@bucardo.org - 2016-04-18 17:10 +0000
  [DBD::Pg 2/5] Use lookup table for placeholder string dbdpg-commits@bucardo.org - 2016-04-18 17:10 +0000
  [DBD::Pg 3/5] Use named enum values for placeholder_type dbdpg-commits@bucardo.org - 2016-04-18 17:10 +0000
  [DBD::Pg 4/5] Use named enum values for pqtype dbdpg-commits@bucardo.org - 2016-04-18 17:10 +0000

csiph-web