Well, the function is called like this:

mysql_real_query( mysql_connection, query_string, strlen( query_string ));

Wouldn't that pass the correct length?

--Anna

Paul DuBois wrote:

> At 14:03 -0600 4/26/02, Anna Fowles-Winkler wrote:
> >Hi,
> >
> >I have an insert command that I'm executing through the C API function
> >mysql_real_query.  One of my values is a string like this:
> >'1;'
> >
> >When mysql_real_query sees the ;, it thinks it's the end of the
> >statement.
>
> That's unlikely.  I'd guess that you're passing a value for the
> query length parameter that's too low.
>
> >   How can I prevent that from happening?  Is there a way to
> >escape it?
> >
> >Thanks very much,
> >Anna
> >[EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to