Use cursor.executescript() for the SQLite backend only.
This commit is contained in:
parent
a5fb5756de
commit
a8e80db8bd
|
@ -364,7 +364,10 @@ class Database( object ):
|
||||||
connection = self.__get_connection()
|
connection = self.__get_connection()
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
cursor.executescript( sql_commands )
|
if self.__backend == Persistent.SQLITE_BACKEND:
|
||||||
|
cursor.executescript( sql_commands )
|
||||||
|
else:
|
||||||
|
cursor.execute( sql_commands )
|
||||||
|
|
||||||
if commit:
|
if commit:
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
Reference in New Issue