Menu

#8 mysql tips

open
nobody
None
5
2003-01-29
2003-01-29
No

Hi,

I set up bmf using mysql. One of the functions in
dbmysql.c has a bug, I think. The function is
sql_escape().

Just after the while loop, the string should be
terminated, so you could just add the following:

*d = *s;

I'm looking at v 1.9 of dbmysql.c and I added it as line
37.

I noticed this problem when strings had the single quote
character in them (').

Thanks for this tool. It's fast!

Allan

Discussion


Log in to post a comment.

MongoDB Logo MongoDB