[libpostgresql-jdbc-java] 27/128: Bug reference 7766 reported by Zelaine Fong if an insert or update or delete statement affects more than 2^32 rows we now return Statement.SUCCESS_NO_INFO

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to annotated tag REL9_3_1100
in repository libpostgresql-jdbc-java.

commit 87959fe4ec03d266ac4fba578548640b777efaa9
Author: Dave Cramer <davecramer at gmail.com>
Date:   Fri Jan 11 11:54:20 2013 -0500

    Bug reference 7766 reported by Zelaine Fong
    if an insert or update or delete statement affects more than 2^32 rows
    we now return Statement.SUCCESS_NO_INFO
---
 org/postgresql/core/v2/QueryExecutorImpl.java | 3 +--
 org/postgresql/core/v3/QueryExecutorImpl.java | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/org/postgresql/core/v2/QueryExecutorImpl.java b/org/postgresql/core/v2/QueryExecutorImpl.java
index bfa83de..24fb0dd 100644
--- a/org/postgresql/core/v2/QueryExecutorImpl.java
+++ b/org/postgresql/core/v2/QueryExecutorImpl.java
@@ -594,8 +594,7 @@ public class QueryExecutorImpl implements QueryExecutor {
             }
             catch (NumberFormatException nfe)
             {
-                handler.handleError(new PSQLException(GT.tr("Unable to interpret the update count in command completion tag: {0}.", status), PSQLState.CONNECTION_FAILURE));
-                return ;
+                update_count=Statement.SUCCESS_NO_INFO;
             }
         }
 
diff --git a/org/postgresql/core/v3/QueryExecutorImpl.java b/org/postgresql/core/v3/QueryExecutorImpl.java
index 54dd104..3dee95d 100644
--- a/org/postgresql/core/v3/QueryExecutorImpl.java
+++ b/org/postgresql/core/v3/QueryExecutorImpl.java
@@ -2196,8 +2196,7 @@ public class QueryExecutorImpl implements QueryExecutor {
             }
             catch (NumberFormatException nfe)
             {
-                handler.handleError(new PSQLException(GT.tr("Unable to interpret the update count in command completion tag: {0}.", status), PSQLState.CONNECTION_FAILURE));
-                return ;
+                update_count=Statement.SUCCESS_NO_INFO;
             }
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list