This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes Ordinal binding and Named binding cannot be combined! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

Ordinal binding and Named binding cannot be combined!

Keith Larsen
Greenhorn

Joined: May 04, 2011
Posts: 2

I'm seeing an error when I execute cstmt.setInt(1,fromVendor); in the code below. When I step through the code I see in TRCCallableStatement.errMsgMixedBind has the following value: "Ordinal binding and Named binding cannot be combined!"

I can see fromVendor=141 and toVendor=5020 so there are no null parameters.

Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
Keith Larsen
Greenhorn

Joined: May 04, 2011
Posts: 2

That worked. Thanks.
priya chitra
Greenhorn

Joined: Jan 04, 2013
Posts: 2

Hi. I am getting a similar message in callable statement as "ordinal binding and named binding cannot be combined together" when calling a procedure. The proc is returning null when calling through Java, whereas in SQL developer it is not returning null. The procedure has 14 IN parameters and 1 OUT Parameter "{call EMPLOYEE_INSERT_DTLS(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"


Priya
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

Please continue the discussion in the other thread. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ordinal binding and Named binding cannot be combined!