Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv4884/src/server

Modified Files:
        sql_mvc.mx 
Log Message:
initialize variables properly


Index: sql_mvc.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_mvc.mx,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- sql_mvc.mx  3 May 2007 23:36:03 -0000       1.182
+++ sql_mvc.mx  6 May 2007 09:04:34 -0000       1.183
@@ -1328,6 +1328,7 @@
        sql->vars[sql->topvars].name = _strdup(name);
        sql->vars[sql->topvars].value.vtype = 0;
        sql->vars[sql->topvars].view = 1;
+       sql->vars[sql->topvars].type.comp_type = NULL;
        sql->topvars++;
 }
 
@@ -1385,7 +1386,7 @@
                        stmt_destroy(v->s);
                        v->value.vtype = 0;
                        VALclear(&v->value);
-                       if (v->type.comp_type) 
+                       if (v->type.comp_type && v->view) 
                                table_destroy(v->type.comp_type);
                }
        }
@@ -1401,7 +1402,7 @@
                _DELETE(v->name);
                v->value.vtype = 0;
                VALclear(&v->value);
-               if (v->type.comp_type) 
+               if (v->type.comp_type && v->view) 
                        table_destroy(v->type.comp_type);
        }
        if (sql->topvars && sql->vars[sql->topvars].name)  


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