• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange IBatis Exception. Plz Help!!

Nitish Shoree
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Normally when we need to pass user params in a SQL query in iBatis we do it like this...

where empname=#employeeName#

but in my query i have to pass in decode function.. like this...

where empname= Decode(#employeeName1#,'John',#employeeName2#,'Bil l')

but this is throwing exception in my case , is this the way we pass userparams in decode or there is some other way??

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!