Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

executeQuery on PreparedStatement Dies  RSS feed

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

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

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!