Changeset: 08e5fe124329 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=08e5fe124329
Modified Files:
        sql/backends/monet5/sql_scenario.c
Branch: Aug2011
Log Message:

fix for bug 2904. We now always cleanup the function list as M5 doesn't cache
and functions anymore.


diffs (31 lines):

diff --git a/sql/backends/monet5/sql_scenario.c 
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -409,25 +409,8 @@ SQLinitClient(Client c)
                mvc_reset(m, c->fdin, c->fdout, SQLdebug, NR_GLOBAL_VARS);
                backend_reset(be);
        }
-       if (m->session->tr) {
-               node *n = ((sql_schema *) 
m->session->tr->schemas.set->h->data)->funcs.set->h;
-               sql_func *f;
-               Symbol s;
-               while (n) {
-                       f = (sql_func *) n->data;
-                       if (f->sql > 1) {
-                               s = c->nspace->subscope[((unsigned char *) 
f->base.name)[0]];
-                               while (s) {
-                                       if (strcmp(s->name, f->base.name) == 0)
-                                               break;
-                                       s = s->skip;
-                               }
-                               if (s == 0)
-                                       f->sql = 1;
-                       }
-                       n = n->next;
-               }
-       }
+       if (m->session->tr)
+               reset_functions(m->session->tr);
        /* pass through credentials of the user if not console */
        schema = monet5_user_get_def_schema(m, c->user);
        if (!schema) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to