Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange problem help  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I want to retrieve a column from DB. I have done as usual, i don't get the output. Look at the code. I get the out put if i give the value directly in the query i.e('adeeb'). If i try to set the String using preparedStatement. There is no output



The code when i used to set the string is here:



Somebody please help me out i can't understand whats happening.


Thanks and regards
alexander
 
Scott Selikoff
author
Bartender
Posts: 4083
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a long shot, but it could be character encoding. In general, though, these two should return the same results I'd do some more general debugging. Grab a debug driver that outputs SQL queries and/or turn on query monitoring so that you can see what's being executed on the server.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!