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