Re: Bug in CAPI of My Sql

2001-05-15 Thread Sinisa Milivojevic
VVM Ravikumar Sarma Chengalvala writes: > Hi Sinisa, > > Thanks for spending the time.Here are few observations > on mysql_escape_string().I have checked it up and > found to be working but with the following problems. > i) > It works well when I want to insert strings like: > "'xyz" or "x'yz". >

Re: Bug in CAPI of My Sql

2001-05-14 Thread VVM Ravikumar Sarma Chengalvala
Hi Sinisa, Thanks for spending the time.Here are few observations on mysql_escape_string().I have checked it up and found to be working but with the following problems. i) It works well when I want to insert strings like: "'xyz" or "x'yz". ii) When I use "x\yz" with the function I see a junk char

Re: Bug in CAPI of My Sql

2001-05-14 Thread Sinisa Milivojevic
VVM Ravikumar Sarma Chengalvala writes: > Hi Sinisa, > Thanks for the detailed mail.Can you send me the > syntax for mysql_escape_string() please so that I can > check up with what I have been trying out. > > Regards, > Ravi Here is an example from C++ : char* s = new char[in.size()*2+1

Re: Bug in CAPI of My Sql

2001-05-14 Thread VVM Ravikumar Sarma Chengalvala
Hi Sinisa, Thanks for the detailed mail.Can you send me the syntax for mysql_escape_string() please so that I can check up with what I have been trying out. Regards, Ravi --- Sinisa Milivojevic <[EMAIL PROTECTED]> wrote: > VVM Ravikumar Sarma Chengalvala writes: > > Sinisa, > > 1. > > Thanks for

Re: Bug in CAPI of My Sql

2001-05-14 Thread Sinisa Milivojevic
VVM Ravikumar Sarma Chengalvala writes: > Sinisa, > 1. > Thanks for the mail. > 2. > I observed that mysql_escape_string()soes not work > either.If I want to store a file name with back > slashes,I feel mysql_escape_string() should introduce > the additional backslash required .But it does not do

Re: Bug in CAPI of My Sql

2001-05-14 Thread VVM Ravikumar Sarma Chengalvala
Sinisa, 1. Thanks for the mail. 2. I observed that mysql_escape_string()soes not work either.If I want to store a file name with back slashes,I feel mysql_escape_string() should introduce the additional backslash required .But it does not do so.It is just copying from source string to destination

Re: Bug in CAPI of My Sql

2001-05-13 Thread Sinisa Milivojevic
VVM Ravikumar Sarma Chengalvala writes: > Hi, > 1. > I am using MySQL3.23 on WindowsNT4.0 platform. > 2. > Whenever I try to use mysql_real_escape_string() > method,it works well with the compiler and fails while > linking.I am using VC++6.0 as environment .The reason > that I have traced out is:

Bug in CAPI of My Sql

2001-05-12 Thread VVM Ravikumar Sarma Chengalvala
Hi, 1. I am using MySQL3.23 on WindowsNT4.0 platform. 2. Whenever I try to use mysql_real_escape_string() method,it works well with the compiler and fails while linking.I am using VC++6.0 as environment .The reason that I have traced out is: i) The function mysql_real_escape_string() is not coming