Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12420 closed defect

Safety level may not be changed inside a transaction on SQLite with synchronous=normal if PySqlite 2.8.1 (3.8.2) — at Initial Version

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.11
Component: database backend Version: 1.0-stable
Severity: normal Keywords: pysqlite
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

2016-03-28 00:56:58,865 Trac[pool] ERROR: Exception caught on create
Traceback (most recent call last):
  File "/home/jun66j5/src/tracdev/svn/branches/1.0-stable/trac/db/pool.py", line 105, in get_cnx
    cnx = connector.get_connection(**kwargs)
  File "/home/jun66j5/src/tracdev/svn/branches/1.0-stable/trac/db/sqlite_backend.py", line 190, in get_connection
    return SQLiteConnection(path, log, params)
  File "/home/jun66j5/src/tracdev/svn/branches/1.0-stable/trac/db/sqlite_backend.py", line 298, in __init__
    _set_synchronous(cursor, params.get('synchronous'))
  File "/home/jun66j5/src/tracdev/svn/branches/1.0-stable/trac/db/sqlite_backend.py", line 408, in _set_synchronous
    cursor.execute('PRAGMA synchronous = %s' % _quote(value))
OperationalError: Safety level may not be changed inside a transaction
2016-03-28 00:56:58,865 Trac[chrome] ERROR: Error during check of EMAIL_VIEW: TimeoutError: Unable to get database connection within 0 seconds. (OperationalError: Safety level may not be changed inside a transaction)

Change History (0)

Note: See TracTickets for help on using tickets.