Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19050/src/backends/monet5

Modified Files:
        sql_gencode.mx 
Log Message:
propagated changes of Wednesday Aug 01 2007 - Friday Aug 17 2007
from the SQL_2-18 branch to the development trunk

There were conflicts in the following files:
        src/benchmarks/arno/Tests/check0a.stable.out
        src/benchmarks/arno/Tests/check1a.stable.out
        src/common/sql_types.mx
        src/test/BugTracker/Tests/All
        src/test/Tests/rank.stable.out
        src/test/leaks/Tests/check0.stable.out
        src/test/leaks/Tests/check1.stable.out
        src/test/leaks/Tests/check2.stable.out
        src/test/leaks/Tests/check3.stable.out
        src/test/leaks/Tests/check4.stable.out
        src/test/leaks/Tests/check5.stable.out
Please have a look at my resolution of src/common/sql_types.mx.
I have not attempted to resolve the conflicts in the stable.out files,
so please take a look and approve if necessary.


Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -d -r1.246 -r1.247
--- sql_gencode.mx      5 Aug 2007 19:35:33 -0000       1.246
+++ sql_gencode.mx      17 Aug 2007 14:58:07 -0000      1.247
@@ -1154,7 +1154,7 @@
                                 s->op4.typeval.type->eclass == EC_DEC ||
                                 s->op4.typeval.type->eclass == EC_INTERVAL ||
                                 EC_TEMP(s->op4.typeval.type->eclass) ||
-                               (s->op4.typeval.type->eclass == EC_STRING && 
+                               (EC_VARCHAR(s->op4.typeval.type->eclass) && 
                                !(s->op3.typeval.type->eclass == EC_STRING &&
                                s->op4.typeval.digits == 0) ) ) ){
                                int type = s->op4.typeval.type->localtype;
@@ -1169,7 +1169,7 @@
 
                        /* convert to string is complex, we need full type info
                           and mvc for the timezone */
-                       if (s->op4.typeval.type->eclass == EC_STRING && 
+                       if (EC_VARCHAR(s->op4.typeval.type->eclass) && 
                            !(s->op3.typeval.type->eclass == EC_STRING &&
                            s->op4.typeval.digits == 0) ) {
                                q = pushInt(mb, q, s->op3.typeval.type->eclass);
@@ -1188,7 +1188,7 @@
                                q = pushInt(mb, q, s->op4.typeval.scale);
                        }
                        /* convert to string, give error on to large strings */
-                       if (s->op4.typeval.type->eclass == EC_STRING && 
+                       if (EC_VARCHAR(s->op4.typeval.type->eclass) && 
                            !(s->op3.typeval.type->eclass == EC_STRING &&
                            s->op4.typeval.digits == 0) )
                                q = pushInt(mb, q, s->op4.typeval.digits);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to