Author: phd
Date: 2010-09-13 10:23:36 -0600 (Mon, 13 Sep 2010)
New Revision: 4234
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py
Log:
SQLiteConnection's parameter use_table_info became boolean with default value True.
Modified: SQLObject/trunk/docs/News.txt
===================================================================
--- SQLObject/trunk/docs/News.txt 2010-08-31 16:48:57 UTC (rev 4233)
+++ SQLObject/trunk/docs/News.txt 2010-09-13 16:23:36 UTC (rev 4234)
@@ -20,6 +20,10 @@
the list of validators, i.e. its ``from_python()`` method is called
first, ``to_python()`` is called last, after all validators in the list.
+* SQLiteConnection's parameter use_table_info became boolean with default
+ value True.
+
+
SQLObject 0.13.0
================
Modified: SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py
===================================================================
--- SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2010-08-31 16:48:57 UTC (rev 4233)
+++ SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2010-09-13 16:23:36 UTC (rev 4234)
@@ -1,7 +1,7 @@
import base64
import os
import thread
-from sqlobject.dbconnection import DBAPI
+from sqlobject.dbconnection import DBAPI, Boolean
from sqlobject import col, sqlbuilder
from sqlobject.dberrors import *
@@ -73,7 +73,7 @@
factory = globals()[factory]
opts['factory'] = factory(sqlite)
else:
- opts['autocommit'] = bool(autoCommit)
+ opts['autocommit'] = Boolean(autoCommit)
if 'encoding' in kw:
opts['encoding'] = kw.pop('encoding')
if 'mode' in kw:
@@ -84,11 +84,11 @@
else:
opts['timeout'] = int(float(kw.pop('timeout')) * 1000)
if 'check_same_thread' in kw:
- opts["check_same_thread"] = bool(kw.pop('check_same_thread'))
+ opts["check_same_thread"] = Boolean(kw.pop('check_same_thread'))
# use only one connection for sqlite - supports multiple)
# cursors per connection
self._connOptions = opts
- self.use_table_info = kw.pop("use_table_info", False)
+ self.use_table_info = Boolean(kw.pop("use_table_info", True))
DBAPI.__init__(self, **kw)
self._threadPool = {}
self._threadOrigination = {}
|