Re: weird error while updating row

From: Barry Lind <blind(at)xythos(dot)com>
To: miguel angel rojas aquino <mrojas_aquino(at)mail(dot)flashmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: weird error while updating row
Date: 2003-06-06 01:39:55
Message-ID: 3EDFF0EB.9040702@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Miguel,

Is there a test case you could submit that reproduces the problem?
Something else you might want to try is to turn on debug logging for the
connection to see if any more useful information is produced. You can
do this by adding "?loglevel=2" to the end of the jdbc connection URL.

thanks,
--Barry

miguel angel rojas aquino wrote:
> hi, i'm getting this exception:
>
> java.sql.Exception: 1 >= 1
>
> while invoking the ResultSet's updateRowMethod.
>
> this is my code:
> --------------------------------------------------------------------------
> rsGlAccount.updateString(GlAccount.getBDescription(), f.getDescription());
> rsGlAccount.updateString(GlAccount.getBShortDesc(),
> f.getShortDesc());
> rsGlAccount.updateString(GlAccount.getBType(), f.getType());
> rsGlAccount.updateString(GlAccount.getBDrIndicator(),
> (f.getDrIndicator()));
> rsGlAccount.updateString(GlAccount.getBCtaMayor(),
> (f.getCtaMayor() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBCommable(),
> (f.getCommable() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBKeepSaleSt(),
> (f.getKeepSaleSt() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBFsCode(),
> f.getFsCode());
> rsGlAccount.updateString(GlAccount.getBCategCode(),
> f.getCategCode());
> rsGlAccount.updateString(GlAccount.getBValidEntity(),
> f.getValidEntity());
> rsGlAccount.updateString(GlAccount.getBAllowAr(),
> (f.getAllowAr() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAp(),
> (f.getAllowAp() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowIn(),
> (f.getAllowIn() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowFa(),
> (f.getAllowFa() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowGl(),
> (f.getAllowGl() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBActive(),
> (f.getActive() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAppl1(),
> (f.getAllowAppl1() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAppl2(),
> (f.getAllowAppl2() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAppl3(),
> (f.getAllowAppl3() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAppl4(),
> (f.getAllowAppl4() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowAppl5(),
> (f.getAllowAppl5() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowCp(),
> (f.getAllowCp() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBTransfer(),
> (f.getTransfer() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBAllowQty(),
> (f.getAllowQty() ? "S" : "N"));
> rsGlAccount.updateString(GlAccount.getBConvert(),
> (f.getConvert() ? "S" : "N"));
> rsGlAccount.updateRow();
> --------------------------------------------------------------------------
>
> and bang, it throws the exception, the funny thing is that the record is
> updated in the database, i'm trying to figure what is causing the error,
> but i've no success, so any help would be greatly appreciated.
>
> i'm using struts 1.0.2, tomcat 4.1.12 jbuilder 8, postgresql
> 7.1.3-4bp.2, the pg73jdbc73.jar on redhat linux 7.2
>
> thanks in advance and best regards
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Brett Delia 2003-06-06 15:57:42 Connection Pooling?
Previous Message Thomas Kellerer 2003-06-05 21:31:20 Re: Official JDBC driver release ?