##// END OF EJS Templates
Use single quotes in sql string literal
Audrey Dutcher -
Show More
@@ -567,8 +567,11 b' class HistoryManager(HistoryAccessor):'
567 567 conn = self.db
568 568
569 569 with conn:
570 cur = conn.execute("""INSERT INTO sessions VALUES (NULL, ?, NULL,
571 NULL, "") """, (datetime.datetime.now(),))
570 cur = conn.execute(
571 """INSERT INTO sessions VALUES (NULL, ?, NULL,
572 NULL, '') """,
573 (datetime.datetime.now(),),
574 )
572 575 self.session_number = cur.lastrowid
573 576
574 577 def end_session(self):
General Comments 0
You need to be logged in to leave comments. Login now