Add checking in setMaxRows, setQueryTimeout, and setFetchSize

From: Kim Ho <kho(at)redhat(dot)com>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, pgsql-jdbc-list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Add checking in setMaxRows, setQueryTimeout, and setFetchSize
Date: 2003-06-19 20:52:47
Message-ID: 1056055967.13900.133.camel@topanga.toronto.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

Problem:
- If you try to setMaxRows(), setQueryTimeout() or setFetchSize()
to negative values, it should throw an exception, but doesn't. JDBC CTS
test failures.

Fix:
- Added new error messages to errors.properties file.
- PSQLExceptions thrown when user attempts to set negative values.

Cheers,

Kim

Attachment Content-Type Size
seterrorhandling.diff text/plain 2.8 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-06-20 00:58:44 Re: maxconnection
Previous Message Kim Ho 2003-06-19 20:52:26 Fix setObject() with java.sql.Types.Date/Time/Timestamp

Browse pgsql-patches by date

  From Date Subject
Next Message Kurt Roeckx 2003-06-19 21:01:19 Re: ss_family in hba.c
Previous Message Kim Ho 2003-06-19 20:52:26 Fix setObject() with java.sql.Types.Date/Time/Timestamp