DAL(...,adapter_args=dict(engine='MyISAM'))

This commit is contained in:
mdipierro
2013-12-09 18:56:05 -06:00
parent 6fb6f441d5
commit bbbee21b0d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2013.12.09.17.54.55
Version 2.8.2-stable+timestamp.2013.12.09.18.55.10
+2 -1
View File
@@ -1032,7 +1032,8 @@ class BaseAdapter(ConnectionPool):
if self.dbengine == 'mysql':
if not hasattr(table, "_primarykey"):
fields.append('PRIMARY KEY (%s)' % (self.QUOTE_TEMPLATE % table._id.name))
other = ' ENGINE=InnoDB CHARACTER SET utf8;'
engine = self.adapter_args.get('engine','InnoDB')
other = ' ENGINE=%s CHARACTER SET utf8;' % engine
fields = ',\n '.join(fields)
for rtablename in TFK: