Changeset: ca893968b734 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ca893968b734 Modified Files: sql/server/rel_schema.c Branch: Jun2016 Log Message:
return exception on create table ... as with data, for merge table and friends. diffs (13 lines): diff --git a/sql/server/rel_schema.c b/sql/server/rel_schema.c --- a/sql/server/rel_schema.c +++ b/sql/server/rel_schema.c @@ -941,6 +941,9 @@ rel_create_table(mvc *sql, sql_schema *s if (!sq) return NULL; + if ((tt == tt_merge_table || tt == tt_remote || tt == tt_replica_table) && with_data) + return sql_error(sql, 02, "42000!CREATE TABLE: cannot create %s table 'with data'", tt == tt_merge_table?"MERGE TABLE":tt == tt_remote?"REMOTE TABLE":"REPLICA TABLE"); + /* create table */ if ((t = mvc_create_table_as_subquery( sql, sq, s, name, column_spec, temp, commit_action)) == NULL) { rel_destroy(sq); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list