[libpostgresql-jdbc-java] 31/128: fixed mistake where update_count not updated properly
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 af1d7cd6e3adfc7718760e35ef59d6b495f6eb34
Author: Dave Cramer <davecramer at gmail.com>
Date: Fri Jan 11 14:36:48 2013 -0500
fixed mistake where update_count not updated properly
---
org/postgresql/core/v2/QueryExecutorImpl.java | 4 +++-
org/postgresql/core/v3/QueryExecutorImpl.java | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/org/postgresql/core/v2/QueryExecutorImpl.java b/org/postgresql/core/v2/QueryExecutorImpl.java
index 324d536..d639a89 100644
--- a/org/postgresql/core/v2/QueryExecutorImpl.java
+++ b/org/postgresql/core/v2/QueryExecutorImpl.java
@@ -592,7 +592,9 @@ public class QueryExecutorImpl implements QueryExecutor {
// deal with situations where the update modifies more than 2^32 rows
if ( updates > Integer.MAX_VALUE )
update_count = Statement.SUCCESS_NO_INFO;
-
+ else
+ update_count = (int)updates;
+
if (status.startsWith("INSERT"))
insert_oid = Long.parseLong(status.substring(1 + status.indexOf(' '),
status.lastIndexOf(' ')));
diff --git a/org/postgresql/core/v3/QueryExecutorImpl.java b/org/postgresql/core/v3/QueryExecutorImpl.java
index e6f81db..40e4d9f 100644
--- a/org/postgresql/core/v3/QueryExecutorImpl.java
+++ b/org/postgresql/core/v3/QueryExecutorImpl.java
@@ -2194,6 +2194,8 @@ public class QueryExecutorImpl implements QueryExecutor {
// deal with situations where the update modifies more than 2^32 rows
if ( updates > Integer.MAX_VALUE )
update_count = Statement.SUCCESS_NO_INFO;
+ else
+ update_count = (int)updates;
if (status.startsWith("INSERT"))
insert_oid = Long.parseLong(status.substring(1 + status.indexOf(' '),
--
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