mysql regexp
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.1-alpha.2+timestamp.2013.02.08.12.41.08
|
||||
Version 2.4.1-alpha.2+timestamp.2013.02.08.13.01.03
|
||||
|
||||
@@ -2390,6 +2390,10 @@ class MySQLAdapter(BaseAdapter):
|
||||
def EPOCH(self, first):
|
||||
return "UNIX_TIMESTAMP(%s)" % self.expand(first)
|
||||
|
||||
def REGEXP(self,first,second):
|
||||
return '(%s REGEXP %s)' % (self.expand(first),
|
||||
self.expand(second,'string'))
|
||||
|
||||
def _drop(self,table,mode):
|
||||
# breaks db integrity but without this mysql does not drop table
|
||||
return ['SET FOREIGN_KEY_CHECKS=0;','DROP TABLE %s;' % table,
|
||||
|
||||
Reference in New Issue
Block a user