Bad Short Default v530 (Fix getXXX methods when used with CHAR co lumns or columns withdecimals)

From: "Addison, Darrick" <DARRICK(dot)ADDISON(at)cubic(dot)com>
To: "'pgsql-jdbc(at)postgresql(dot)org'" <pgsql-jdbc(at)postgresql(dot)org>
Cc: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>, "'kho(at)redhat(dot)com'" <kho(at)redhat(dot)com>
Subject: Bad Short Default v530 (Fix getXXX methods when used with CHAR co lumns or columns withdecimals)
Date: 2003-08-26 18:40:51
Message-ID: 547FB5C65F37D6119C150003471B5507012DA8C8@shemp.ds.cubic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

Hi,
Just wanted to know if anyone can help with the following PostgresSQL 7.x
error that
occurs after running a program that uses the pg73jdbc2.jar:

Note: The following URL provided some clues but I'm unsure how to
incorporate the fix
http://archives.postgresql.org/pgsql-jdbc/2003-06/msg00062.php
<http://archives.postgresql.org/pgsql-jdbc/2003-06/msg00062.php>


Proc: {call getExProfiles(-999)}
Bad Short Default v530
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getShort(AbstractJdbc1ResultSet.
java:136)
at Int2SqlField.loadFromDb(Int2SqlField.java:34)
at DbProc.doExecute(DbProc.java:213)
at ProfOffsets.refreshScenarioProfiles(ProfOffsets.java:104)
at PeScenario.JdbcLoadScenarios(PeScenario.java:382)
at PeScenario.PublishAndSubscribe(PeScenario.java:277)
at FedAmb.svcInit(FedAmb.java:372)
at Pehla.Init(Pehla.java:1231)
at Pehla.DoHla(Pehla.java:912)
at Pehla$ServiceHla.run(Pehla.java:166)
at java.lang.Thread.run(Unknown Source)
The column index is out of range.
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1Resu
ltSet.java:675)
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet
.java:91)
at StringSqlField.loadFromDb(StringSqlField.java:40)
at DbProc.doExecute(DbProc.java:213)
at ProfOffsets.refreshScenarioProfiles(ProfOffsets.java:104)
at PeScenario.JdbcLoadScenarios(PeScenario.java:382)
at PeScenario.PublishAndSubscribe(PeScenario.java:277)
at FedAmb.svcInit(FedAmb.java:372)
at Pehla.Init(Pehla.java:1231)
at Pehla.DoHla(Pehla.java:912)
at Pehla$ServiceHla.run(Pehla.java:166)
at java.lang.Thread.run(Unknown Source)
Bad Short Default v530
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getShort(AbstractJdbc1ResultSet.
java:136)
at Int2SqlField.loadFromDb(Int2SqlField.java:34)
at DbProc.doExecute(DbProc.java:213)
at ProfOffsets.refreshScenarioProfiles(ProfOffsets.java:104)
at PeScenario.JdbcLoadScenarios(PeScenario.java:382)
at PeScenario.PublishAndSubscribe(PeScenario.java:277)
at FedAmb.svcInit(FedAmb.java:372)
at Pehla.Init(Pehla.java:1231)
at Pehla.DoHla(Pehla.java:912)
at Pehla$ServiceHla.run(Pehla.java:166)
at java.lang.Thread.run(Unknown Source)
The column index is out of range.
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1Resu
ltSet.java:675)
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet
.java:91)
at StringSqlField.loadFromDb(StringSqlField.java:40)
at DbProc.doExecute(DbProc.java:213)
at ProfOffsets.refreshScenarioProfiles(ProfOffsets.java:104)
at PeScenario.JdbcLoadScenarios(PeScenario.java:382)
at PeScenario.PublishAndSubscribe(PeScenario.java:277)
at FedAmb.svcInit(FedAmb.java:372)
at Pehla.Init(Pehla.java:1231)
at Pehla.DoHla(Pehla.java:912)
at Pehla$ServiceHla.run(Pehla.java:166)
at java.lang.Thread.run(Unknown Source)

Kind Regards,
Darrick

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tomisław Kityński 2003-08-26 18:46:13 DatabaseMetaData.get(Imi|Ex)portedKeys() and FK_NAME column
Previous Message Barry Lind 2003-08-26 18:19:17 Re: Issues with calling stored prcedures

Browse pgsql-patches by date

  From Date Subject
Next Message Darko Prenosil 2003-08-26 18:47:15 Re:
Previous Message Bruce Momjian 2003-08-26 18:37:52 Re: array concat, et al patch (was: [GENERAL] join of array)