• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read a '\n; new line character from Sybase DB ?

 
Rohan Kayan
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to read a '\n; new line character from Sybase DB ? In the table we have some string "\Device\newpath" while reading it using plain prepare statement on the output it is showing "\Deviceewpath" . Is there any way by which we can get the output "\Device\newpath" ?


TIA
 
Andrey Kozhanov
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the problem is in database driver you use. Try to use another one.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "on the output"? How are you trying to display the string? Is the data correct in the DB? Have you examined all individual characters of the string returned from the DB to see what is actually in it? If not, that's where you should start.

I doubt that it has anything to do with the JDBC driver.
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!