On Aug 10, 2007, at 5:56 , Alejandro Torras wrote:
Is there some way to put values in a INSERT statement without taking care of apostrophes? In example: INSERT INTO persons VALUES ('Harry', 'O'Callaghan');
This is pretty much a solved problem: don't interpolate into SQL statements. Use bind parameters (and prepared statements, if you have them) instead. For example
sth = dbh.prepare "INSERT INTO persons (given_name, family_name) VALUES (?, ?)"
sth.execute("Harry", "O'Callaghan") Michael Glaesemann grzm seespotcode net ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings