Also a patch from Kris Jurka to correctly report SQLState support.
Modified Files:
jdbc/org/postgresql/Driver.java.in
jdbc/org/postgresql/core/QueryExecutor.java
jdbc/org/postgresql/fastpath/Fastpath.java
jdbc/org/postgresql/geometric/PGbox.java
jdbc/org/postgresql/geometric/PGcircle.java
jdbc/org/postgresql/geometric/PGline.java
jdbc/org/postgresql/geometric/PGlseg.java
jdbc/org/postgresql/geometric/PGpath.java
jdbc/org/postgresql/geometric/PGpoint.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
jdbc/org/postgresql/jdbc2/Array.java
jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
jdbc/org/postgresql/util/PGmoney.java
jdbc/org/postgresql/util/PSQLState.java
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.35 2003/09/08 17:30:22 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/Driver.java.in,v 1.36 2003/09/13 04:02:12 barry Exp $
*
*-------------------------------------------------------------------------
*/
{
if (Driver.logDebug)
Driver.debug("error", ex);
- throw new PSQLException("postgresql.jvm.version", ex);
+ throw new PSQLException("postgresql.jvm.version", PSQLState.SYSTEM_ERROR, ex);
}
catch (PSQLException ex1)
{
if (Driver.logDebug) {
Driver.debug("error", ex2);
}
- throw new PSQLException("postgresql.unusual", ex2);
+ throw new PSQLException("postgresql.unusual", PSQLState.UNEXPECTED_ERROR, ex2);
}
}
//The build number should be incremented for every new build
- private static int m_buildNumber = 208;
+ private static int m_buildNumber = 209;
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.25 2003/09/09 10:49:16 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/QueryExecutor.java,v 1.26 2003/09/13 04:02:13 barry Exp $
*
*-------------------------------------------------------------------------
*/
for ( int i = 0; i < m_binds.length ; i++ )
{
if ( m_binds[i] == null )
- throw new PSQLException("postgresql.prep.param", PSQLState.PARAMETER_ERROR, new Integer(i + 1));
+ throw new PSQLException("postgresql.prep.param", PSQLState.INVALID_PARAMETER_VALUE, new Integer(i + 1));
}
try
{
for ( int i = 0; i < m_binds.length ; i++ )
{
if ( m_binds[i] == null )
- throw new PSQLException("postgresql.prep.param", PSQLState.PARAMETER_ERROR, new Integer(i + 1));
+ throw new PSQLException("postgresql.prep.param", PSQLState.INVALID_PARAMETER_VALUE, new Integer(i + 1));
}
try
{
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.15 2003/09/08 17:30:22 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Attic/Fastpath.java,v 1.16 2003/09/13 04:02:13 barry Exp $
*
*-------------------------------------------------------------------------
*/
break;
default:
- throw new PSQLException("postgresql.fp.protocol", new Character((char)c));
+ throw new PSQLException("postgresql.fp.protocol", PSQLState.COMMUNICATION_ERROR, new Character((char)c));
}
}
break;
default:
- throw new PSQLException("postgresql.fp.protocol", new Character((char)c));
+ throw new PSQLException("postgresql.fp.protocol", PSQLState.COMMUNICATION_ERROR, new Character((char)c));
}
}
if ( errorMessage != null )
- throw new PSQLException("postgresql.fp.error", errorMessage.toString());
+ throw new PSQLException("postgresql.fp.error", PSQLState.COMMUNICATION_ERROR, errorMessage.toString());
return result;
}
// so, until we know we can do this (needs testing, on the TODO list)
// for now, we throw the exception and do no lookups.
if (id == null)
- throw new PSQLException("postgresql.fp.unknown", name);
+ throw new PSQLException("postgresql.fp.unknown", PSQLState.UNEXPECTED_ERROR, name);
return id.intValue();
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGbox.java,v 1.4 2003/03/07 18:39:42 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGbox.java,v 1.5 2003/09/13 04:02:14 barry Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.geometric;
-import java.sql.SQLException;
-import java.io.Serializable;
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
+import java.io.Serializable;
+import java.sql.SQLException;
public class PGbox extends PGobject implements Serializable, Cloneable
{
{
PGtokenizer t = new PGtokenizer(value, ',');
if (t.getSize() != 2)
- throw new PSQLException("postgresql.geo.box", value);
+ throw new PSQLException("postgresql.geo.box", PSQLState.DATA_TYPE_MISMATCH, value);
point[0] = new PGpoint(t.getToken(0));
point[1] = new PGpoint(t.getToken(1));
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.5 2003/05/29 04:39:48 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.6 2003/09/13 04:02:14 barry Exp $
*
*-------------------------------------------------------------------------
*/
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
import java.io.Serializable;
import java.sql.SQLException;
{
PGtokenizer t = new PGtokenizer(PGtokenizer.removeAngle(s), ',');
if (t.getSize() != 2)
- throw new PSQLException("postgresql.geo.circle", s);
+ throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, s);
try
{
}
catch (NumberFormatException e)
{
- throw new PSQLException("postgresql.geo.circle", e);
+ throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, e);
}
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGline.java,v 1.4 2003/03/07 18:39:42 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGline.java,v 1.5 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.geometric;
-import java.io.Serializable;
-import java.sql.SQLException;
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
+import java.io.Serializable;
+import java.sql.SQLException;
/*
* Currently line is not yet implemented in the backend, but this class
{
PGtokenizer t = new PGtokenizer(PGtokenizer.removeBox(s), ',');
if (t.getSize() != 2)
- throw new PSQLException("postgresql.geo.line", s);
+ throw new PSQLException("postgresql.geo.line", PSQLState.DATA_TYPE_MISMATCH, s);
point[0] = new PGpoint(t.getToken(0));
point[1] = new PGpoint(t.getToken(1));
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGlseg.java,v 1.4 2003/03/07 18:39:42 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGlseg.java,v 1.5 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.geometric;
-import java.io.Serializable;
-import java.sql.SQLException;
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
+import java.io.Serializable;
+import java.sql.SQLException;
public class PGlseg extends PGobject implements Serializable, Cloneable
{
{
PGtokenizer t = new PGtokenizer(PGtokenizer.removeBox(s), ',');
if (t.getSize() != 2)
- throw new PSQLException("postgresql.geo.lseg");
+ throw new PSQLException("postgresql.geo.lseg", PSQLState.DATA_TYPE_MISMATCH);
point[0] = new PGpoint(t.getToken(0));
point[1] = new PGpoint(t.getToken(1));
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpath.java,v 1.5 2003/03/07 18:39:42 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpath.java,v 1.6 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.geometric;
-import java.io.Serializable;
-import java.sql.SQLException;
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
+import java.io.Serializable;
+import java.sql.SQLException;
public class PGpath extends PGobject implements Serializable, Cloneable
{
s = PGtokenizer.removePara(s);
}
else
- throw new PSQLException("postgresql.geo.path");
+ throw new PSQLException("postgresql.geo.path", PSQLState.DATA_TYPE_MISMATCH);
PGtokenizer t = new PGtokenizer(s, ',');
int npoints = t.getSize();
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpoint.java,v 1.5 2003/05/29 04:39:48 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGpoint.java,v 1.6 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
import java.awt.Point;
import java.io.Serializable;
import java.sql.SQLException;
}
catch (NumberFormatException e)
{
- throw new PSQLException("postgresql.geo.point", e.toString());
+ throw new PSQLException("postgresql.geo.point", PSQLState.DATA_TYPE_MISMATCH, e.toString());
}
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.25 2003/09/09 10:49:16 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.26 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
case AUTH_REQ_SCM:
if (Driver.logDebug)
Driver.debug("postgresql: SCM");
- throw new PSQLException("postgresql.con.scm");
+ throw new PSQLException("postgresql.con.scm", PSQLState.CONNECTION_REJECTED);
case AUTH_REQ_PASSWORD:
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.17 2003/09/09 10:49:16 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.18 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
}
catch (NumberFormatException e)
{
- throw new PSQLException("postgresql.res.badbyte", s);
+ throw new PSQLException("postgresql.res.badbyte", PSQLState.NUMERIC_VALUE_OUT_OF_RANGE, s);
}
}
return 0; // SQL NULL
Field field;
if (columnIndex < 1 || columnIndex > fields.length)
- throw new PSQLException("postgresql.res.colrange");
+ throw new PSQLException("postgresql.res.colrange", PSQLState.INVALID_PARAMETER_VALUE);
field = fields[columnIndex - 1];
// some fields can be null, mainly from those returned by MetaData methods
if ( this_row == null )
throw new PSQLException("postgresql.res.nextrequired");
if ( column < 1 || column > fields.length )
- throw new PSQLException("postgresql.res.colrange" );
+ throw new PSQLException("postgresql.res.colrange", PSQLState.INVALID_PARAMETER_VALUE );
}
//----------------- Formatting Methods -------------------
import org.postgresql.core.Field;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Vector;
private Field getField(int columnIndex) throws SQLException
{
if (columnIndex < 1 || columnIndex > fields.length)
- throw new PSQLException("postgresql.res.colrange");
+ throw new PSQLException("postgresql.res.colrange", PSQLState.INVALID_PARAMETER_VALUE);
return fields[columnIndex - 1];
}
}
import java.sql.Types;
import java.util.Vector;
-/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.35 2003/09/09 10:49:16 barry Exp $
+/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.36 2003/09/13 04:02:15 barry Exp $
* This class defines methods of the jdbc1 specification. This class is
* extended by org.postgresql.jdbc2.AbstractJdbc2Statement which adds the jdbc2
* methods. The real Statement class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Statement
public boolean execute() throws SQLException
{
if (isFunction && !returnTypeSet)
- throw new PSQLException("postgresql.call.noreturntype");
+ throw new PSQLException("postgresql.call.noreturntype", PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL);
if (isFunction)
{ // set entry 1 to dummy entry..
m_binds[0] = ""; // dummy entry which ensured that no one overrode
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException
{
if (parameterIndex != 1)
- throw new PSQLException ("postgresql.call.noinout");
+ throw new PSQLException ("postgresql.call.noinout", PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL);
if (!isFunction)
- throw new PSQLException ("postgresql.call.procasfunc", originalSql);
+ throw new PSQLException ("postgresql.call.procasfunc", PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL,originalSql);
// functionReturnType contains the user supplied value to check
// testReturn contains a modified version to make it easier to
private void bind(int paramIndex, Object s, String type) throws SQLException
{
if (paramIndex < 1 || paramIndex > m_binds.length)
- throw new PSQLException("postgresql.prep.range", PSQLState.PARAMETER_ERROR);
+ throw new PSQLException("postgresql.prep.range", PSQLState.INVALID_PARAMETER_VALUE);
if (paramIndex == 1 && isFunction) // need to registerOut instead
throw new PSQLException ("postgresql.call.funcover");
m_binds[paramIndex - 1] = s;
isValid = false;
index = l_sql.indexOf ("call");
if (index == -1 || !isValid)
- throw new PSQLException ("postgresql.call.malformed",
+ throw new PSQLException ("postgresql.call.malformed",PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL,
new Object[]{l_sql, JDBC_SYNTAX});
l_sql = l_sql.replace ('{', ' '); // replace these characters
l_sql = l_sql.replace ('}', ' ');
{
checkIndex (parameterIndex);
if (type1 != this.testReturn && type2 != this.testReturn)
- throw new PSQLException("postgresql.call.wrongget",
+ throw new PSQLException("postgresql.call.wrongget", PSQLState.MOST_SPECIFIC_TYPE_DOES_NOT_MATCH,
new Object[]{"java.sql.Types=" + testReturn,
getName,
"java.sql.Types=" + type1});
{
checkIndex (parameterIndex);
if (type != this.testReturn)
- throw new PSQLException("postgresql.call.wrongget",
+ throw new PSQLException("postgresql.call.wrongget", PSQLState.MOST_SPECIFIC_TYPE_DOES_NOT_MATCH,
new Object[]{"java.sql.Types=" + testReturn,
getName,
"java.sql.Types=" + type});
private void checkIndex (int parameterIndex) throws SQLException
{
if (!isFunction)
- throw new PSQLException("postgresql.call.noreturntype");
+ throw new PSQLException("postgresql.call.noreturntype", PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL);
if (parameterIndex != 1)
- throw new PSQLException("postgresql.call.noinout");
+ throw new PSQLException("postgresql.call.noinout", PSQLState.STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL);
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.22 2003/09/08 17:30:22 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.23 2003/09/13 04:02:15 barry Exp $
*
*-------------------------------------------------------------------------
*/
return null;
if (i < 1 || i > fields.length)
- throw new PSQLException("postgresql.res.colrange");
+ throw new PSQLException("postgresql.res.colrange", PSQLState.INVALID_PARAMETER_VALUE);
return (java.sql.Array) new org.postgresql.jdbc2.Array( connection, i, fields[i - 1], this );
}
import org.postgresql.core.Field;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Vector;
private Field getField(int columnIndex) throws SQLException
{
if (columnIndex < 1 || columnIndex > fields.length)
- throw new PSQLException("postgresql.res.colrange");
+ throw new PSQLException("postgresql.res.colrange", PSQLState.INVALID_PARAMETER_VALUE);
return fields[columnIndex - 1];
}
import org.postgresql.core.BaseStatement;
import org.postgresql.core.Field;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
throw org.postgresql.Driver.notImplemented();
if (index < 1)
- throw new PSQLException("postgresql.arr.range");
+ throw new PSQLException("postgresql.arr.range", PSQLState.DATA_ERROR);
Object retVal = null;
ArrayList array = new ArrayList();
count = arrayContents.length;
index--;
if ( index + count > arrayContents.length )
- throw new PSQLException("postgresql.arr.range");
+ throw new PSQLException("postgresql.arr.range", PSQLState.DATA_ERROR);
int i = 0;
switch ( getBaseType() )
*/
public int getSQLStateType() throws SQLException
{
- throw org.postgresql.Driver.notImplemented();
+ return DatabaseMetaData.sqlStateSQL99;
}
/**
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGmoney.java,v 1.5 2003/03/07 18:39:46 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/util/Attic/PGmoney.java,v 1.6 2003/09/13 04:02:16 barry Exp $
*
*-------------------------------------------------------------------------
*/
}
catch (NumberFormatException e)
{
- throw new PSQLException("postgresql.money", e);
+ throw new PSQLException("postgresql.money", PSQLState.NUMERIC_CONSTANT_OUT_OF_RANGE, e);
}
}
// begin constant state codes
public final static PSQLState UNKNOWN_STATE = new PSQLState("");
+ public final static PSQLState NO_DATA = new PSQLState("02000");
+ public final static PSQLState INVALID_PARAMETER_TYPE = new PSQLState("07006");
+ public final static PSQLState CONNECTION_UNABLE_TO_CONNECT = new PSQLState("08001");
+ public final static PSQLState CONNECTION_DOES_NOT_EXIST = new PSQLState("08003");
+ public final static PSQLState CONNECTION_REJECTED = new PSQLState("08004");
+ public final static PSQLState CONNECTION_FAILURE = new PSQLState("08006");
+ public final static PSQLState CONNECTION_FAILURE_DURING_TRANSACTION = new PSQLState("08007");
public final static PSQLState COMMUNICATION_ERROR = new PSQLState("08S01");
- public final static PSQLState NO_DATA = new PSQLState("02000");
- public final static PSQLState CONNECTION_FAILURE_DURING_TRANSACTION = new PSQLState("08007");
- public final static PSQLState UNEXPECTED_ERROR = new PSQLState("99999");
- public final static PSQLState NUMERIC_VALUE_OUT_OF_RANGE = new PSQLState("22003");
- public final static PSQLState BAD_DATETIME_FORMAT = new PSQLState("22007");
- public final static PSQLState DATA_ERROR = new PSQLState("22000");
- public final static PSQLState CONNECTION_DOES_NOT_EXIST = new PSQLState("08003");
- public final static PSQLState CONNECTION_REJECTED = new PSQLState("08004");
- public final static PSQLState CONNECTION_UNABLE_TO_CONNECT = new PSQLState("08001");
- public final static PSQLState CONNECTION_FAILURE = new PSQLState("08006");
- public final static PSQLState CONNECTION_CLOSED = new PSQLState("08003");
- public final static PSQLState NOT_IMPLEMENTED = new PSQLState("0A000");
- public final static PSQLState INVALID_PARAMETER_TYPE = new PSQLState("07006");
- public final static PSQLState PARAMETER_ERROR = new PSQLState("07001");
+ public final static PSQLState NOT_IMPLEMENTED = new PSQLState("0A000");
+ public final static PSQLState DATA_ERROR = new PSQLState("22000");
+ public final static PSQLState NUMERIC_VALUE_OUT_OF_RANGE = new PSQLState("22003");
+ public final static PSQLState BAD_DATETIME_FORMAT = new PSQLState("22007");
+ public final static PSQLState MOST_SPECIFIC_TYPE_DOES_NOT_MATCH = new PSQLState("2200G");
+ public final static PSQLState INVALID_PARAMETER_VALUE = new PSQLState("22023");
public final static PSQLState TRANSACTION_STATE_INVALID = new PSQLState("25000");
+ public final static PSQLState STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL = new PSQLState("2F003");
+ public final static PSQLState NUMERIC_CONSTANT_OUT_OF_RANGE = new PSQLState("42820'");
+ public final static PSQLState DATA_TYPE_MISMATCH = new PSQLState("42821");
+ public final static PSQLState SYSTEM_ERROR = new PSQLState("60000");
+ public final static PSQLState UNEXPECTED_ERROR = new PSQLState("99999");
}