diff options
| author | Barry Lind <barry@xythos.com> | 2003-09-13 04:02:16 +0000 |
|---|---|---|
| committer | Barry Lind <barry@xythos.com> | 2003-09-13 04:02:16 +0000 |
| commit | 509a9cd3f922c38c19d35e81bb1427d663ba4aba (patch) | |
| tree | 84b47a1e27382af5f7c788d2a45732cedc937ed0 /src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java | |
| parent | f8c365c8db16448a7228ba57abc9f7c40688c782 (diff) | |
| download | postgresql-509a9cd3f922c38c19d35e81bb1427d663ba4aba.tar.gz | |
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
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java b/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java index 43f008a510..1b0e562109 100644 --- a/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java +++ b/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java @@ -7,7 +7,7 @@ * 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 $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,8 @@ package org.postgresql.geometric; 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; @@ -78,7 +80,7 @@ public class PGcircle extends PGobject implements Serializable, Cloneable { 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 { @@ -87,7 +89,7 @@ public class PGcircle extends PGobject implements Serializable, Cloneable } catch (NumberFormatException e) { - throw new PSQLException("postgresql.geo.circle", e); + throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, e); } } |
