From 4c63b257fd90e28a043197fd2abc07f2166f8eb3 Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Tue, 18 May 1999 23:17:46 +0000 Subject: Internationalisation of error messages --- src/interfaces/jdbc/postgresql/Field.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interfaces/jdbc/postgresql/Field.java') 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); -- cgit v1.2.3