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

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
bmarcus
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 05.12.2008, 10:57

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

Post 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
masdono
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 03.12.2009, 13:01

Post by masdono »

Replace backslash with forward slash. Instead of 'c:\test', save path as 'c:/test'.
bmarcus
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 05.12.2008, 10:57

Post by bmarcus »

Hi,

that's a good point. Thanks.

Marcus
Locked