Author: turnstep
Date: Sat Aug 23 15:11:15 2008
New Revision: 11673

Modified:
   DBD-Pg/trunk/Pg.xs
   DBD-Pg/trunk/dbdimp.c

Log:
Should be safe to remove this for now.


Modified: DBD-Pg/trunk/Pg.xs
==============================================================================
--- DBD-Pg/trunk/Pg.xs  (original)
+++ DBD-Pg/trunk/Pg.xs  Sat Aug 23 15:11:15 2008
@@ -305,8 +305,7 @@
                        imp_sth = (imp_sth_t*)(DBIh_COM(sth));
                        if (!dbdxst_bind_params(sth, imp_sth, items-2, ax+2))
                                XSRETURN_UNDEF;
-                       imp_sth->server_prepare = 1;
-                       imp_sth->onetime = 1; /* Overrides the above at actual 
PQexec* decision time */
+                       imp_sth->onetime = 1; /* Tells dbdimp.c not to bother 
preparing this */
                        imp_sth->async_flag = asyncflag;
                        retval = dbd_st_execute(sth, imp_sth);
                }

Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Sat Aug 23 15:11:15 2008
@@ -2919,8 +2919,8 @@
           1. The statement is DML
           2. The attribute "pg_direct" is false
           3. The attribute "pg_server_prepare" is not 0
-          4. There is one or more placeholders
-          5. There are no DEFAULT values
+          4. There is one or more placeholders (but "onetime" has not been set)
+          5. There are no DEFAULT or CURRENT values
           6a. The attribute "pg_server_prepare" is 1
           OR
           6b. All placeholders are bound (and "pg_server_prepare" is 2)

Reply via email to