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

Modified Files:
        sql_gencode.mx 
Log Message:
small fixes to the external types


Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_gencode.mx,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- sql_gencode.mx      1 Apr 2007 22:08:54 -0000       1.150
+++ sql_gencode.mx      20 Apr 2007 20:37:32 -0000      1.151
@@ -747,6 +747,11 @@
                        int l = backend_dumpstmt_(s->op1.stval, nr, sql);
                        size_t buflen = SMALLBUFSIZ;
 
+                       /* 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->localtype ==
                            s->op3.typeval.type->localtype &&
                            s->op4.typeval.type->eclass ==


-------------------------------------------------------------------------
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