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:
> i)
> The function mysql_real_escape_string() is not coming
> in the downloaded MySQL.I have checked up the .def
> file in the "Includes" directory and found that the
> function is not there in the .def file as well.
> ii)
> Then I tried to use mysql_escape_string(),but the
> documentation says to use mysql-real_escape-string.
> iii)
> Pl note that mysql_escape_string is present in the
> .def file in the "includes" directory but not
> mysql_real_escape_string().
> 3.
> I request you to suggest remedy for the same.
>
> Regards,
> Ravikumar Sharma Chengalvala
> Software Engineer
Hi!
I must say I do not truly know how that error crept into Win32 source,
but that function is truly simple :
ulong STDCALL
mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
ulong length)
{
return mysql_sub_escape_string(mysql->charset,to,from,length);
}
Regards,
Sinisa
____ __ _____ _____ ___ == MySQL AB
/*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
/*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
/*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
/*/ \*\ Developers Team
---------------------------------------------------------------------
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