witten
/
luminotes
Archived
1
0
Fork 0

Use cursor.executescript() for the SQLite backend only.

This commit is contained in:
Dan Helfman 2008-10-17 01:24:48 -07:00
parent a5fb5756de
commit a8e80db8bd
1 changed files with 4 additions and 1 deletions

View File

@ -364,7 +364,10 @@ class Database( object ):
connection = self.__get_connection()
cursor = connection.cursor()
cursor.executescript( sql_commands )
if self.__backend == Persistent.SQLITE_BACKEND:
cursor.executescript( sql_commands )
else:
cursor.execute( sql_commands )
if commit:
connection.commit()