Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20904/src/backends/monet4
Modified Files:
sql_server.mx
Log Message:
propagated changes of Tuesday Jul 15 2008 - Thursday Jul 17 2008
from the SQL_2-24 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/07/15 - nielsnes: src/backends/monet4/sql_server.mx,1.198.2.5
we need to drop declared tables when we leave the scope.
THis fixes bug mdb_starts_with_sql_debug_64.SF-1999354.sql.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: sql_server.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_server.mx,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- sql_server.mx 5 Jun 2008 09:22:30 -0000 1.200
+++ sql_server.mx 17 Jul 2008 13:28:37 -0000 1.201
@@ -139,6 +139,8 @@
.COMMAND mvc_declared_table_column( mvc m, int rs, str tname, str name,
str typename, int digits, int scale) = mvc_declared_table_column_wrap; "Add the
colunm to the declared table"
+ .COMMAND mvc_drop_declared_table( mvc m, str name) :void =
mvc_drop_declared_table_wrap; "Drop a declared table"
+
.COMMAND mvc_schema_operation(mvc m, Stream s, str w) =
mvc_export_schema_wrap; "export a schema operation to stream s"
@@ -832,6 +834,19 @@
}
int
+mvc_drop_declared_table_wrap(mvc *M, str name)
+{
+ mvc *m = *(mvc**)M;
+ sql_schema *s = NULL;
+ sql_table *t = NULL;
+
+ s = mvc_bind_schema(m, "%dt%");
+ t = mvc_bind_table(m, s, name);
+ (void)mvc_drop_table(m, s, t, 0);
+ return GDK_SUCCEED;
+}
+
+int
mvc_result_value_wrap(mvc *M, str tn, str name, str type, int *digits, int
*scale, ptr p, int mtype)
{
if (mvc_result_value(*(mvc **) M, tn, name, type, *digits, *scale, p,
mtype))
-------------------------------------------------------------------------
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