craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > JDBC/Database Issues Post New Topic   Post A Reply
update problem printer friendly version
next newest post | next oldest post
Author Messages
jiantu{@}lehman.com
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

I have problem updating the column when the column is in the where clause, e.g.

the update sql string is

update TESTME set COL1=?,ACHAR=?,AINT=?,AFLOAT=?,ADATE=? where COL1=?

the debug prints out as below:

Data updated: oldvalue: bbb new value: bbbrr
Executing sql update TESTME set COL1=?,ACHAR=?,AINT=?,AFLOAT=?,ADATE=? where COL1=? with arguments:
Argument 1: Datatype in database:12. Datatype of cell data: java.lang.String. Value:bbbrr
Argument 2: Datatype in database:1. Datatype of cell data: java.lang.String. Value:ggg
Argument 3: Datatype in database:4. Datatype of cell data: java.lang.Integer. Value:123
Argument 4: Datatype in database:6. Datatype of cell data: java.lang.Double. Value:23.34000015258789
Argument 5: Datatype in database:12. Datatype of cell data: java.sql.Timestamp. Value:2002-01-01 00:00:00.0
Argument 6: Datatype in database:12. Datatype of cell data: java.lang.String. Value:bbbrr

as you can see, the Argument 6 should contains the Old value bbb but it wrongly use the new value bbbrr, hence the update will never work - or work wrongly - i.e. update something it should not!!!

Sounds like a bug to me - Is there a work round to this?

Many thanks

admin{@}quicktable.org
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Please have a look at the following discussion.

http://quicktable.org/discussion/db_TalkToMe.cgi?forum_name=QuickTable.setup.cgi&message_number=302

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios