Re: Binary data with embedded nulls (mysql_real_escape_string problem).

2001-12-14 Thread M. A. Alves
On Fri, 14 Dec 2001, Ian Collins wrote: > > I am having difficulties with entering binary data from a c program. > I have passed the string through mysql_real_escape_string. Post the C data then. However read on. > > . . . > > drop table if exists junk5; > > create table junk5 > ( > id int no

Binary data with embedded nulls (mysql_real_escape_string problem).

2001-12-13 Thread Ian Collins
(The following was done in mysql_4.0 alpha) I am having difficulties with entering binary data from a c program. I have passed the string through mysql_real_escape_string. What I am seeing is that if the binary data contains an ascii 0, then mysql_real_escape_string, correctly, translates it t