Index: trunk/storage/storemysql.py =================================================================== --- trunk/storage/storemysql.py (revision 56) +++ trunk/storage/storemysql.py (revision 57) @@ -24,6 +24,16 @@ like_escapes = [("%", r"\%"), ("_", r"\_")] + # TRUE and FALSE only work with 4.1 or better. + bool_true = "1" + bool_false = "0" + def coerce_str(self, value): return "'" + _mysql.escape_string(value) + "'" + + def coerce_bool(self, value): + # TRUE and FALSE only work with 4.1 or better. + if value: + return '1' + return '0'