Changeset: e001310fcf3c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e001310fcf3c
Modified Files:
sql/backends/monet5/sql_cat.c
sql/backends/monet5/sql_cat.h
Branch: mosaic
Log Message:
Do not allow the 'mosaic' storage strategy in sql for now.
diffs (27 lines):
diff --git a/sql/backends/monet5/sql_cat.c b/sql/backends/monet5/sql_cat.c
--- a/sql/backends/monet5/sql_cat.c
+++ b/sql/backends/monet5/sql_cat.c
@@ -897,6 +897,11 @@ alter_table(Client cntxt, mvc *sql, char
// TODO check where this task is cleaned up.
task = (MOStask) GDKzalloc(sizeof(*task));
if( c->storage_type) {
+
+ if (strstr(c->storage_type,"mosaic") != 0)
+ throw(SQL,
+ "sql.alter",
MOSAIC_STRATEGY_NOT_ALLOWED);
+
if( task == NULL)
throw(SQL, "sql.alter",
MAL_MALLOC_FAIL);
diff --git a/sql/backends/monet5/sql_cat.h b/sql/backends/monet5/sql_cat.h
--- a/sql/backends/monet5/sql_cat.h
+++ b/sql/backends/monet5/sql_cat.h
@@ -22,6 +22,8 @@
#define sql5_export extern
#endif
+#define MOSAIC_STRATEGY_NOT_ALLOWED "Currently MonetDB does not support the
mosaic storage strategy."
+
#include "sql.h"
#include "mal_backend.h"
#include "sql_atom.h"
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list