The Artima Developer Community
Sponsored Link

Java Answers Forum
JDBC setObject prob

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Rohit

Posts: 38
Nickname: rohit
Registered: May, 2002

JDBC setObject prob Posted: Jan 1, 2003 3:26 AM
Reply to this message Reply
Advertisement
hi all,
i m using db2 as a d/b server ,and i m trying to store a row into a table,
as i m not too sure about d/b structure(column types) i m using preparedstememnt.setObject(int,object)
to set the values in the psmts and then doing executeUpdate.Everything work s fine excep a case when
the d/b column is of type integer or long or double and value to be assinged is empty string(0 lenght)
I get Error in assignment error from db2 driver.

What may be the reason and solution.actually how will i store a null in numeric column using setObject,
becasue in my case a string of 0 lenght means null value.

Any idea

Topic: Using RequestDispatcher Previous Topic   Next Topic Topic: Select Color to decide sum problem :Help needed

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use