really fix SQL query
This commit is contained in:
parent
4bfd971415
commit
18c8500f9b
|
@ -748,8 +748,11 @@ class Logger:
|
||||||
gzip.write(data)
|
gzip.write(data)
|
||||||
gzip.close()
|
gzip.close()
|
||||||
data = string.getvalue()
|
data = string.getvalue()
|
||||||
sql = '''
|
self.cur.execute('''
|
||||||
INSERT INTO caps_cache ( node, ver, ext, data )
|
INSERT INTO caps_cache ( node, ver, ext, data )
|
||||||
VALUES (%s, %s, %s, %s);
|
VALUES (?, ?, ?, ?);
|
||||||
''' % (node, ver, ext, buffer(data)) # (1) -- note above
|
''' % (node, ver, ext, buffer(data))) # (1) -- note above
|
||||||
self.simple_commit(sql)
|
try:
|
||||||
|
self.con.commit()
|
||||||
|
except sqlite.OperationalError, e:
|
||||||
|
print >> sys.stderr, str(e)
|
||||||
|
|
Loading…
Reference in New Issue