List:General Discussion« Previous MessageNext Message »
From:Philippe Poelvoorde Date:August 3 2005 9:37pm
Subject:Re: Question about BLOB
View as plain text  
Gelu Gogancea wrote:
> I use mysql C API and for *escaping* the data i use the
> mysql_real_escape_string()....the mysql native function.
> Thanks,

Make sure to use mysql_real_query with the right length.
because mysql_query is a macro for mysql_real_query with an additionnal 
parameters given by strlen(query_string); which culd lead to the broken 
result.

http://dev.mysql.com/doc/mysql/en/mysql-real-query.html

-- 
Philippe Poelvoorde
COS Trading Ltd.
Thread
Question about BLOBGelu Gogancea1 Aug
RE: Question about BLOBJay Blanchard1 Aug
RE: Question about BLOBGelu Gogancea2 Aug
  • Re: Question about BLOBOctavian Rasnita2 Aug
    • Re: Question about BLOBAndy Hilton2 Aug
      • Re: Question about BLOBJason Pyeron2 Aug
    • Re: Question about BLOBJason Pyeron2 Aug
  • Re: Question about BLOBPhilippe Poelvoorde3 Aug
RE: Question about BLOBGelu Gogancea3 Aug
  • Re: Question about BLOBPhilippe Poelvoorde3 Aug