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

Modified Files:
      Tag: SQL_2-24
        sql_session.mx 
Log Message:
include the schema into the hash key, fixes bug 
constraint_with_schemas.SF-2080219.sql


U sql_session.mx
Index: sql_session.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_session.mx,v
retrieving revision 1.242
retrieving revision 1.242.2.1
diff -u -d -r1.242 -r1.242.2.1
--- sql_session.mx      9 Apr 2008 10:40:24 -0000       1.242
+++ sql_session.mx      9 Sep 2008 12:31:27 -0000       1.242.2.1
@@ -274,7 +274,7 @@
                if (err)
                        return sqlcleanup(c, err);
        } else if (c->emode == m_inplace || c->emode == m_explain || !c->cache 
|| 
-                  !(q = qc_match(c->qc, c->sym, c->args, c->argc, 
c->scanner.key))) {
+                  !(q = qc_match(c->qc, c->sym, c->args, c->argc, 
c->scanner.key ^ c->session->schema->base.id))) {
                stmt *s = sql_symbol2stmt(c);
 
                if (!s && (err = mvc_status(c))) /* semantic errors */
@@ -284,7 +284,7 @@
                        err = backend_explain(be, s, out);
                } else {
                        if (c->cache && s->type != st_none) {
-                               q = qc_insert(c->qc, c->sa, c->sym, c->args, 
c->argc, c->scanner.key, c->type, sql_escape_str(QUERY(c->scanner)));
+                               q = qc_insert(c->qc, c->sa, c->sym, c->args, 
c->argc, c->scanner.key ^ c->session->schema->base.id, c->type, 
sql_escape_str(QUERY(c->scanner)));
                                c->sa = NULL;
                                c->sym = NULL;
                        }


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