Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

Ordinal binding and Named binding cannot be combined!

 
Keith Larsen
Greenhorn
Posts: 2
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Report post to moderator
 
Keith Larsen
Greenhorn
Posts: 2
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
That worked. Thanks.
 
priya chitra
Greenhorn
Posts: 2
Java Notepad Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
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(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion in the other thread. Thanks!
 
    Bookmark Topic Watch Topic
  • New Topic