summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
index ba9acb9e5a..34a0f3596e 100644
--- a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
+++ b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
@@ -9,7 +9,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.24 2003/09/08 17:30:22 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.25 2003/09/09 10:49:16 barry Exp $
*
*-------------------------------------------------------------------------
*/
@@ -252,7 +252,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
case 'N':
// Server does not support ssl
- throw new PSQLException("postgresql.con.sslnotsupported");
+ throw new PSQLException("postgresql.con.sslnotsupported", PSQLState.CONNECTION_FAILURE);
case 'S':
// Server supports ssl
@@ -262,7 +262,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
break;
default:
- throw new PSQLException("postgresql.con.sslfail");
+ throw new PSQLException("postgresql.con.sslfail", PSQLState.CONNECTION_FAILURE);
}
}
}
@@ -559,7 +559,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
case 'N':
// Server does not support ssl
- throw new PSQLException("postgresql.con.sslnotsupported");
+ throw new PSQLException("postgresql.con.sslnotsupported", PSQLState.CONNECTION_FAILURE);
case 'S':
// Server supports ssl
@@ -569,7 +569,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
break;
default:
- throw new PSQLException("postgresql.con.sslfail");
+ throw new PSQLException("postgresql.con.sslfail", PSQLState.CONNECTION_FAILURE);
}
}
}
@@ -1610,7 +1610,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
}
BaseResultSet result = execSQL(sql);
if (result.getColumnCount() != 1 || result.getTupleCount() != 1) {
- throw new PSQLException("postgresql.unexpected");
+ throw new PSQLException("postgresql.unexpected", PSQLState.UNEXPECTED_ERROR);
}
result.next();
pgType = result.getString(1);
@@ -1651,7 +1651,7 @@ public abstract class AbstractJdbc1Connection implements BaseConnection
}
BaseResultSet result = execSQL(sql);
if (result.getColumnCount() != 1 || result.getTupleCount() != 1)
- throw new PSQLException("postgresql.unexpected");
+ throw new PSQLException("postgresql.unexpected", PSQLState.UNEXPECTED_ERROR);
result.next();
oid = Integer.parseInt(result.getString(1));
typeOidCache.put(typeName, new Integer(oid));