Changeset: 088315943907 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=088315943907
Modified Files:
        clients/python2/monetdb/sql/monetize.py
        clients/python3/monetdb/sql/monetize.py
Branch: Jan2014
Log Message:

We need to actually call the conversion function.


diffs (24 lines):

diff --git a/clients/python2/monetdb/sql/monetize.py 
b/clients/python2/monetdb/sql/monetize.py
--- a/clients/python2/monetdb/sql/monetize.py
+++ b/clients/python2/monetdb/sql/monetize.py
@@ -88,7 +88,7 @@ def convert(data):
     else:
         for type_, func in mapping:
             if issubclass(type(data), type_):
-                return func
+                return func(data)
         #if hasattr(data, '__str__'):
         #    return monet_escape
     raise ProgrammingError("type %s not supported as value" % type(data))
diff --git a/clients/python3/monetdb/sql/monetize.py 
b/clients/python3/monetdb/sql/monetize.py
--- a/clients/python3/monetdb/sql/monetize.py
+++ b/clients/python3/monetdb/sql/monetize.py
@@ -84,7 +84,7 @@ def convert(data):
     else:
         for type_, func in mapping:
             if issubclass(type(data), type_):
-                return func
+                return func(data)
         #if hasattr(data, '__str__'):
         #    return monet_escape
     raise ProgrammingError("type %s not supported as value" % type(data))
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to