fixed string concatenation in MySQL
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.5-stable+timestamp.2013.04.03.09.49.46
|
Version 2.4.5-stable+timestamp.2013.04.03.11.31.36
|
||||||
|
|||||||
@@ -2424,6 +2424,9 @@ class MySQLAdapter(BaseAdapter):
|
|||||||
def EPOCH(self, first):
|
def EPOCH(self, first):
|
||||||
return "UNIX_TIMESTAMP(%s)" % self.expand(first)
|
return "UNIX_TIMESTAMP(%s)" % self.expand(first)
|
||||||
|
|
||||||
|
def CONCAT(self, *items):
|
||||||
|
return 'CONCAT(%s)' % ','.join(self.expand(x,'string') for x in items)
|
||||||
|
|
||||||
def REGEXP(self,first,second):
|
def REGEXP(self,first,second):
|
||||||
return '(%s REGEXP %s)' % (self.expand(first),
|
return '(%s REGEXP %s)' % (self.expand(first),
|
||||||
self.expand(second,'string'))
|
self.expand(second,'string'))
|
||||||
|
|||||||
Reference in New Issue
Block a user