Re: PreparedStatement does not work with multiple values Insert
Posted by: David Wynter
Date: April 08, 2005 04:27PM

I should clarify what I mean by 'multiple values' in an Insert PreparedStatement. Like this:

INSERT INTO table (id, col2, col3) values (?, ?, ?), (?, ?, ?)

I first tried with a 38 column table with 20 value sets. Thinking this may exceed some internal limit scaled that back to 4 sets of the 38 column values.

Specific error is S1009 message is "Statement pararmeter 1 not set". When I inspect the ServerPreparedStatement none of the bindings seem to have values (i,e, null). This is despite me checking that the relevant setNull or SetString or set* methods had been called for each of the columns.

David

Options: ReplyQuote


Subject
Written By
Posted
Re: PreparedStatement does not work with multiple values Insert
April 08, 2005 04:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.