this function on libmysql is, but i don´t know how to implement it

ulong STDCALL
mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
             ulong length)
{
  if (mysql->server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)
    return (uint) escape_quotes_for_mysql(mysql->charset, to, 0, from, length);
  return (uint) escape_string_for_mysql(mysql->charset, to, 0, from, length);
}

Best Regards,
Fernando Athayde




________________________________
De: wang shuming <[email protected]>
Para: [email protected]
Enviadas: Terça-feira, 4 de Maio de 2010 1:42:19
Assunto: [Harbour] add mysql_real_escape_string()--->mysql.c ?

Hi, this is a important mysql C client function 
mysql_real_escape_string(),convert 
        * \x00
        * \n
        * \r
        * \
        * '
        * "
        * \x1a
   Someone could add this function  into mysql.c so harbour app could call the 
function?

Thanks !
Shuming Wang 


      
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to