- Luca Arena
- PowerBuilder
- Thursday, 31 January 2019 03:54 PM UTC
Hi all.
I have a problem regarding the escaping of backslash characters with SQL Anywhere dbs. I experience the problem inside a PB Datawindow, but it's merely a db problem, so I will describe it in terms of pure SQL.
Suppose I create a dummy table such as:
CREATE TABLE dummy (filepath char(50));
Then I do the following insert:
INSERT INTO dummy VALUES ('\\theserver\newfolder\thepath');
Well, if I then do a SELECT * FROM dummy I get:
\theserverewfolder\thepath
That is because the \\ and \n have been escaped and trasformed to single backslash (\\) and nothing (\n). Luckily the \t has not been escaped (who knows why?).
If I do the same with a SQL Server database all works ok (no escaping). With MySQL there's an option (NO_BACKSLASH_ESCAPES) that can be sent at connection time to avoid this behaviour.
What about SQL Anywhere? Do you know a way to avoid this?
Thank you much,
Luca
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.