postgresql string concatenation

This commit is contained in:
Massimo Di Pierro
2012-01-22 16:09:23 -06:00
parent 7ea1dd78c9
commit 64a97cd040
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-01-21 17:32:51) stable
Version 1.99.4 (2012-01-22 16:08:57) stable
+7
View File
@@ -1901,6 +1901,13 @@ class PostgreSQLAdapter(BaseAdapter):
def RANDOM(self):
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):
return