diff options
author | Peter Mount | 1999-05-18 23:17:46 +0000 |
---|---|---|
committer | Peter Mount | 1999-05-18 23:17:46 +0000 |
commit | 4c63b257fd90e28a043197fd2abc07f2166f8eb3 (patch) | |
tree | c7e1108fc1dae813c2df536d5475fc6058293519 /src/interfaces/jdbc/postgresql/Field.java | |
parent | c2f0d565f319f7a75f0178758e9270c96d0c807f (diff) |
Internationalisation of error messages
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Field.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Field.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/postgresql/Field.java b/src/interfaces/jdbc/postgresql/Field.java index 416ddaa7e27..0d3c52adc5f 100644 --- a/src/interfaces/jdbc/postgresql/Field.java +++ b/src/interfaces/jdbc/postgresql/Field.java @@ -4,6 +4,7 @@ import java.lang.*; import java.sql.*; import java.util.*; import postgresql.*; +import postgresql.util.*; /** * postgresql.Field is a class used to describe fields in a PostgreSQL @@ -62,7 +63,7 @@ public class Field if(type_name==null) { ResultSet result = (postgresql.ResultSet)conn.ExecSQL("select typname from pg_type where oid = " + oid); if (result.getColumnCount() != 1 || result.getTupleCount() != 1) - throw new SQLException("Unexpected return from query for type"); + throw new PSQLException("postgresql.unexpected"); result.next(); type_name = result.getString(1); conn.fieldCache.put(new Integer(oid),type_name); |