Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16:/tmp/cvs-serv20765/src/backends/monet5

Modified Files:
        sql_gencode.mx 
Log Message:
sql external types should use special convert functions named by the sql type 
name


Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -d -r1.240 -r1.241
--- sql_gencode.mx      17 Apr 2007 12:27:05 -0000      1.240
+++ sql_gencode.mx      23 Apr 2007 11:05:28 -0000      1.241
@@ -1118,6 +1118,11 @@
 
                        @:SQLprelude@
 
+                       /* external types have sqlname convert functions,
+                          these can generate errors (fromstr cannot) */
+                       if (s->op4.typeval.type->eclass == EC_ANY)
+                               convert = s->op4.typeval.type->sqlname;
+               
                        if (s->op4.typeval.type->eclass == EC_INTERVAL) {
                                if (s->op4.typeval.type->localtype == TYPE_int)
                                        convert = "month_interval";


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to