summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/jdbc1/Statement.java
diff options
context:
space:
mode:
authorPeter Mount <peter@retep.org.uk>1999-05-18 23:17:46 +0000
committerPeter Mount <peter@retep.org.uk>1999-05-18 23:17:46 +0000
commit4c63b257fd90e28a043197fd2abc07f2166f8eb3 (patch)
treec7e1108fc1dae813c2df536d5475fc6058293519 /src/interfaces/jdbc/postgresql/jdbc1/Statement.java
parentc2f0d565f319f7a75f0178758e9270c96d0c807f (diff)
downloadpostgresql-4c63b257fd90e28a043197fd2abc07f2166f8eb3.tar.gz
Internationalisation of error messages
Diffstat (limited to 'src/interfaces/jdbc/postgresql/jdbc1/Statement.java')
-rw-r--r--src/interfaces/jdbc/postgresql/jdbc1/Statement.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/interfaces/jdbc/postgresql/jdbc1/Statement.java b/src/interfaces/jdbc/postgresql/jdbc1/Statement.java
index 4bc026331b..0f458acec7 100644
--- a/src/interfaces/jdbc/postgresql/jdbc1/Statement.java
+++ b/src/interfaces/jdbc/postgresql/jdbc1/Statement.java
@@ -7,6 +7,8 @@ package postgresql.jdbc1;
import java.sql.*;
+import postgresql.util.PSQLException;
+
/**
* A Statement object is used for executing a static SQL statement and
* obtaining the results produced by it.
@@ -52,7 +54,7 @@ public class Statement implements java.sql.Statement
while (result != null && !((postgresql.ResultSet)result).reallyResultSet())
result = ((postgresql.ResultSet)result).getNext();
if (result == null)
- throw new SQLException("no results returned");
+ throw new PSQLException("postgresql.stat.noresult");
return result;
}
@@ -69,7 +71,7 @@ public class Statement implements java.sql.Statement
{
this.execute(sql);
if (((postgresql.ResultSet)result).reallyResultSet())
- throw new SQLException("results returned");
+ throw new PSQLException("postgresql.stat.result");
return this.getUpdateCount();
}
@@ -114,7 +116,7 @@ public class Statement implements java.sql.Statement
*/
public void setMaxFieldSize(int max) throws SQLException
{
- throw new SQLException("Attempt to setMaxFieldSize failed - compile time default");
+ throw new PSQLException("postgresql.stat.maxfieldsize");
}
/**