Question about tpgquery sql.text property

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Question about tpgquery sql.text property

Post by snorkel » Wed 04 Feb 2009 16:44

Hi,
I remember it mentioned before that the tpgquery component would handle instances where a query might have a native pgslq cast i.e.
::text

I didn't have time to test this, but will it also handle strings that have \ (backslashes) in them?
Say I have a text field and I want to update it with a win32 file path, will the query component escape them for me?

Thanks,

Snorkel

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Mon 09 Feb 2009 11:37

If you pass this string through parameters, PgDAC will modify the string. If you specify it in SQL statememt ,PgDAC will not change it.

Post Reply