postgresql-jdbc.git / summary / log / commit / refs
commit ea20ded27d6e604ecd0109828ad68f44b0b2d5a2
Author: Kris Jurka <books@ejurka.com>
Date: Sun Mar 21 07:13:37 2010 +0000
Assorted minor improvements:
Remove an unused field.
Remove a double null-check.
Fix a typo.
Pierre Queinnec
org/postgresql/core/v3/CopyOperationImpl.java | 3 +--
org/postgresql/core/v3/QueryExecutorImpl.java | 4 ++--
org/postgresql/fastpath/Fastpath.java | 4 ++--
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/org/postgresql/core/v3/CopyOperationImpl.java b/org/postgresql/core/v3/CopyOperationImpl.java
index 19982d06..25c804dc 100644
--- a/org/postgresql/core/v3/CopyOperationImpl.java
+++ b/org/postgresql/core/v3/CopyOperationImpl.java
@@ -3,7 +3,7 @@
* Copyright (c) 2009, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL$
+* $PostgreSQL: pgjdbc/org/postgresql/core/v3/CopyOperationImpl.java,v 1.1 2009/07/01 05:00:40 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -17,7 +17,6 @@ import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;
public class CopyOperationImpl implements CopyOperation {
- String sql;
QueryExecutorImpl queryExecutor;
int rowFormat;
int[] fieldFormats;
diff --git a/org/postgresql/core/v3/QueryExecutorImpl.java b/org/postgresql/core/v3/QueryExecutorImpl.java
index aa71a5c8..691615b8 100644
--- a/org/postgresql/core/v3/QueryExecutorImpl.java
+++ b/org/postgresql/core/v3/QueryExecutorImpl.java
@@ -4,7 +4,7 @@
* Copyright (c) 2004, Open Cloud Limited.
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/core/v3/QueryExecutorImpl.java,v 1.46 2009/12/04 19:53:20 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/core/v3/QueryExecutorImpl.java,v 1.47 2009/12/07 22:03:06 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -980,7 +980,7 @@ public class QueryExecutorImpl implements QueryExecutor {
error = new PSQLException(GT.tr("Got CopyData without an active copy operation"), PSQLState.OBJECT_NOT_IN_STATE);
} else if (!(op instanceof CopyOutImpl)) {
error = new PSQLException(GT.tr("Unexpected copydata from server for {0}",
- op == null ? "null" : op.getClass().getName()), PSQLState.COMMUNICATION_ERROR);
+ op.getClass().getName()), PSQLState.COMMUNICATION_ERROR);
} else {
((CopyOutImpl)op).handleCopydata(buf);
}
diff --git a/org/postgresql/fastpath/Fastpath.java b/org/postgresql/fastpath/Fastpath.java
index 34f7dac8..9e23dae7 100644
--- a/org/postgresql/fastpath/Fastpath.java
+++ b/org/postgresql/fastpath/Fastpath.java
@@ -3,7 +3,7 @@
* Copyright (c) 2003-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/fastpath/Fastpath.java,v 1.34 2007/02/19 06:00:24 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/fastpath/Fastpath.java,v 1.35 2008/01/08 06:56:28 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,7 +22,7 @@ import org.postgresql.util.GT;
/**
* This class implements the Fastpath api.
*
- * <p>This is a means of executing functions imbeded in the org.postgresql
+ * <p>This is a means of executing functions embedded in the
* backend from within a java application.
*
* <p>It is based around the file src/interfaces/libpq/fe-exec.c
[parent: 5e0641509ae1]