From 33815bf657272b0be82f946ac7d53f082f6a4860 Mon Sep 17 00:00:00 2001 From: Barry Lind Date: Wed, 17 Sep 2003 05:14:52 +0000 Subject: [PATCH] Applied patch from Fernando Nasser of RedHat to fix some error messages that would not get correctly looked up in the translation files for jdbc Modified Files: jdbc/org/postgresql/errors.properties jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java --- src/interfaces/jdbc/org/postgresql/errors.properties | 2 +- .../jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/interfaces/jdbc/org/postgresql/errors.properties b/src/interfaces/jdbc/org/postgresql/errors.properties index 9b8edc3a5f..468ef71aa8 100644 --- a/src/interfaces/jdbc/org/postgresql/errors.properties +++ b/src/interfaces/jdbc/org/postgresql/errors.properties @@ -94,7 +94,7 @@ postgresql.updateable.beforestartdelete:Before start of result set. Can not call postgresql.updateable.afterlastdelete:After end of result set. Can not call deleteRow(). postgresql.updateable.notoninsertrow:Not on insert row. postgresql.updateable.inputstream:Input Stream is null. -postgresql.updateable.ioerror:Input Stream Error. +postgresql.updateable.ioerror:Input Stream Error - {0} postgresql.call.noreturntype:A CallableStatement Function was declared but no call to 'registerOutParameter (1, )' was made. postgresql.call.noinout:PostgreSQL only supports function return value [@ 1] (no OUT or INOUT arguments) postgresql.call.procasfunc:This Statement [{0}] defines a procedure call (needs ?= call to be considered a function. diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java index e7f723365f..7b4f7c1e9a 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java @@ -9,7 +9,7 @@ * Copyright (c) 2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.23 2003/09/13 04:02:15 barry Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.24 2003/09/17 05:14:52 barry Exp $ * *------------------------------------------------------------------------- */ @@ -778,7 +778,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra } catch (IOException ie) { - throw new PSQLException("postgresql.updateable.ioerror" + ie); + throw new PSQLException("postgresql.updateable.ioerror", ie); } updateValue(columnIndex, theData); @@ -811,7 +811,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra } catch (IOException ie) { - throw new PSQLException("postgresql.updateable.ioerror" + ie); + throw new PSQLException("postgresql.updateable.ioerror", ie); } updateValue(columnIndex, theData); } @@ -858,7 +858,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra } catch (IOException ie) { - throw new PSQLException("postgresql.updateable.ioerror" + ie); + throw new PSQLException("postgresql.updateable.ioerror", ie); } updateValue(columnIndex, theData); } -- 2.40.0