Segfault in mysql_real_escape_string

2004-09-06 Thread Ruben Safir Secretary NYLXS
Hello I'm getting a segmentation fault in the mysql function mysql_real_escape_string and I don't have a clue why. What am I missing? #include /* Headers for MySQL usage */ #include #include #include // #define INSERT_STATEMENT "INSERT INTO patient (idno,first,last,medrec) VALUES(NULL,?,?,

segfault in mysql_real_escape_string

2001-09-10 Thread Guillaume Morin
Hi folks, I've the main developer of nss-mysql. I've found out a very strange problem. On a Debian potato, mysql 3.23.38 and glibc 2.1.3 This bit of code segfault on the last line. The string useris correct (printed correctly in log). /* we escape the user string */ secure_use