mysql_real_escape_string and VB.Net/ASP.Net
Posted by: Brian Conklin
Date: January 14, 2005 09:50PM

Hello,
I apologize if this has been answered somewhere else. I have been searching for days and have not found anything.
I have written a small function to escape strings before placing them in INSERT/UPDATE queries in my apps. It has worked great until I started using parameterized queries. For some reason when assigning a text string to a parameter value, my function does not escape the single or double quotes in the text.
I decided to see if the .Net connector had support for the mysql_real_escape_string() function from the client library. I figured it would be better to use the actual function provided than my own. I can't find anything on it other than the C api documentation.
Is there a way to call this function from the client library in a VB.Net/ASP.Net application? How do I do it?

Brian Conklin

Options: ReplyQuote


Subject
Written By
Posted
mysql_real_escape_string and VB.Net/ASP.Net
January 14, 2005 09:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.