do not quote non-string values
This commit is contained in:
parent
6ffce4cf6e
commit
96e8dd7b45
@ -137,6 +137,8 @@ class SqlDumpEmitter(Emitter):
|
||||
table_name, '`,`'.join(fieldnames))
|
||||
|
||||
def quote(self, item):
|
||||
if not isinstance(item, ('unicode','str')):
|
||||
return "%s" % item
|
||||
item = item.replace("\\","\\\\").replace("'","\\'").replace(chr(0),'0')
|
||||
return "'%s'" % item
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user