postgresql string concatenation
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.4 (2012-01-21 17:32:51) stable
|
Version 1.99.4 (2012-01-22 16:08:57) stable
|
||||||
|
|||||||
@@ -1901,6 +1901,13 @@ class PostgreSQLAdapter(BaseAdapter):
|
|||||||
def RANDOM(self):
|
def RANDOM(self):
|
||||||
return 'RANDOM()'
|
return 'RANDOM()'
|
||||||
|
|
||||||
|
def ADD(self, first, second):
|
||||||
|
t = first.type
|
||||||
|
if t in ('text','string','password','upload','blob'):
|
||||||
|
return '(%s || %s)' % (self.expand(first), self.expand(second, t))
|
||||||
|
else:
|
||||||
|
return '(%s + %s)' % (self.expand(first), self.expand(second, t))
|
||||||
|
|
||||||
def distributed_transaction_begin(self,key):
|
def distributed_transaction_begin(self,key):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user