• Post Reply Bookmark Topic Watch Topic
  • New Topic

executeQuery on PreparedStatement Dies

 
jason zepris
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Sybase and I've ran into an issue that I can't seem to resolve. I have a query like this

otherField is defined as Char(2)

If I substitute ? with '11' for example everything works fine but if I instead substitute a String with an alpha character such as "D1" then executeQuery doesn't seem to do anything. I've put a breakpoint when executeQuery gets called and with the alpha string parameter after executeQuery executes it immediately exits without calling any code after the statement, it doesn't hang or throw any exception. Has anybody ran into this issue before

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!