Skip to content
Snippets Groups Projects
Commit 18c8500f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

really fix SQL query

parent 4bfd9714
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment