Changeset 3830
- Timestamp:
- 10/03/06 12:29:10 (3 years ago)
- Files:
-
- 1 modified
-
trunk/trac/db/sqlite_backend.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trac/db/sqlite_backend.py
r3754 r3830 135 135 136 136 __slots__ = ['_active_cursors'] 137 poolable = False137 poolable = have_pysqlite and sqlite_version >= 30301 138 138 139 139 def __init__(self, path, params={}): … … 148 148 not os.access(dbdir, os.R_OK + os.W_OK): 149 149 from getpass import getuser 150 raise TracError ,'The user %s requires read _and_ write ' \151 'permission to the database file %s and the ' \152 'directory it is located in.' \153 % (getuser(), path)150 raise TracError('The user %s requires read _and_ write ' \ 151 'permission to the database file %s and the ' \ 152 'directory it is located in.' \ 153 % (getuser(), path)) 154 154 155 155 if have_pysqlite == 2: … … 157 157 timeout = int(params.get('timeout', 10.0)) 158 158 cnx = sqlite.connect(path, detect_types=sqlite.PARSE_DECLTYPES, 159 check_same_thread=sqlite_version < 30301, 159 160 timeout=timeout) 160 161 else:
