How can i escape value for sqlcommand text insertion ?

How can i escape value for sqlcommand text insertion ?

Postby baba » Wed 22 Mar 2006 18:54

I have got some String values. They are absolutely of any contents.

Like "Hello guy's"

When i build a command text, i need to escape some caracters.

Like with the C api PQescapeString(...)

Have you got an equivalent ??
baba
 
Posts: 22
Joined: Thu 14 Apr 2005 16:40

Postby Alexey » Thu 23 Mar 2006 08:20

We don't have such public functions. Use parameters instead.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for PostgreSQL