Hello,

I just found this project and I'm interested in development.
I'm building a custom application using zope3 and I wanted to use sqlalchemy as ORM instead of writing my own
(since I'm not satisfacted with the available alternatives)
I'm an experienced python and postgres programmer willing to contribute.

Here is my first little patch. Do you have some policy on where to send patches ?

regards
marko

===================================================================
--- lib/sqlalchemy/databases/postgres.py        (revision 953)
+++ lib/sqlalchemy/databases/postgres.py        (working copy)
@@ -277,7 +277,12 @@
                 text += " \n LIMIT ALL"
             text += " OFFSET " + str(select.offset)
         return text
-
+    def binary_operator_string(self, binary):
+ if isinstance(binary.type, sqltypes.String) and binary.operator == '+':
+            return '||'
+        else:
+ return ansisql.ANSICompiler.binary_operator_string(self, binary)
+
class PGSchemaGenerator(ansisql.ANSISchemaGenerator):

def get_column_specification(self, column, override_pk=False, **kwargs):
Index: examples/adjacencytree/basic_tree.py





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to