How can i escape value for sqlcommand text insertion ?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
baba
Posts: 22
Joined: Thu 14 Apr 2005 16:40

How can i escape value for sqlcommand text insertion ?

Post by 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 ??

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Thu 23 Mar 2006 08:20

We don't have such public functions. Use parameters instead.

Post Reply