Update of /cvsroot/monetdb/sql/src/common
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28176

Modified Files:
        sql_keyword.mx sql_types.mx 
Log Message:
Recast the type name back to lowercase.


U sql_types.mx
Index: sql_types.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_types.mx,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- sql_types.mx        10 Oct 2008 08:58:50 -0000      1.115
+++ sql_types.mx        22 Oct 2008 10:21:15 -0000      1.116
@@ -1033,7 +1033,7 @@
        t->radix = radix;
        t->eclass = eclass;
        t->s = NULL;
-       if (!keyword_exists(t->sqlname))
+       if (!keyword_exists(mkLower(t->sqlname)) )
                keywords_insert(t->sqlname, KW_TYPE);
        list_append(types, t);
 

U sql_keyword.mx
Index: sql_keyword.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/common/sql_keyword.mx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- sql_keyword.mx      22 Oct 2008 07:10:12 -0000      1.13
+++ sql_keyword.mx      22 Oct 2008 10:21:15 -0000      1.14
@@ -63,6 +63,7 @@
    with most usage patterns */
 
        kw = NEW(keyword);
+       len =0;
        bucket = keyword_key(k = toUpper(k), &len) & HASH_MASK;
        kw->keyword = k;
        kw->len = len;


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to