diff options
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java b/src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java index c3c04b8ef6..30283df961 100644 --- a/src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java +++ b/src/interfaces/jdbc/org/postgresql/geometric/PGpoint.java @@ -6,7 +6,7 @@ * 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 $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,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.awt.Point; import java.io.Serializable; import java.sql.SQLException; @@ -80,7 +82,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable } catch (NumberFormatException e) { - throw new PSQLException("postgresql.geo.point", e.toString()); + throw new PSQLException("postgresql.geo.point", PSQLState.DATA_TYPE_MISMATCH, e.toString()); } } |