mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
More SQLState updates from Kim Ho at Redhat.
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
This commit is contained in:
@@ -5,6 +5,8 @@ import org.postgresql.core.BaseResultSet;
|
||||
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;
|
||||
@@ -77,7 +79,7 @@ public class Array implements java.sql.Array
|
||||
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();
|
||||
@@ -127,7 +129,7 @@ public class Array implements java.sql.Array
|
||||
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() )
|
||||
|
Reference in New Issue
Block a user