fixed CAST LONGTEXT issue with mysql
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.9.5-trunk+timestamp.2014.06.08.00.33.23
|
Version 2.9.5-trunk+timestamp.2014.06.13.11.45.40
|
||||||
|
|||||||
@@ -2666,6 +2666,10 @@ class MySQLAdapter(BaseAdapter):
|
|||||||
return '(%s REGEXP %s)' % (self.expand(first),
|
return '(%s REGEXP %s)' % (self.expand(first),
|
||||||
self.expand(second, 'string'))
|
self.expand(second, 'string'))
|
||||||
|
|
||||||
|
def CAST(self, first, second):
|
||||||
|
if second=='LONGTEXT': second = 'CHAR'
|
||||||
|
return 'CAST(%s AS %s)' % (first, second)
|
||||||
|
|
||||||
def _drop(self, table, mode):
|
def _drop(self, table, mode):
|
||||||
# breaks db integrity but without this mysql does not drop table
|
# breaks db integrity but without this mysql does not drop table
|
||||||
table_rname = table.sqlsafe
|
table_rname = table.sqlsafe
|
||||||
|
|||||||
Reference in New Issue
Block a user