Page 1 of 1

Problem writing a "path-text" with Backslash to Da

Posted: 27.11.2009, 08:50
by bmarcus
Hi all,

I have problems to write a path (filepath) to a vchar column in a postgre database. I'm using Zeos 7.

Example:

if i write 'C:\\TEST' in the sql command or E'C:\\TEST', the dabasebase receives only the String "C:\Test". So the "\\" is interpretes as "\T".

I can solve the Problem by setting the path to 'C:\\\\TEST'. But this is not a good solution!

Do you know this problem?
Can s.b. help me?

Thanks

Marcus

Posted: 03.12.2009, 13:06
by masdono
Replace backslash with forward slash. Instead of 'c:\test', save path as 'c:/test'.

Posted: 03.12.2009, 13:15
by bmarcus
Hi,

that's a good point. Thanks.

Marcus