Changeset: 882cc12f4831 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=882cc12f4831
Modified Files:
sql/server/rel_updates.c
Branch: Jul2015
Log Message:
add checks to disallow inserts into stream's fixes bug 3952
diffs (21 lines):
diff --git a/sql/server/rel_updates.c b/sql/server/rel_updates.c
--- a/sql/server/rel_updates.c
+++ b/sql/server/rel_updates.c
@@ -390,6 +390,8 @@ insert_allowed(mvc *sql, sql_table *t, c
return sql_error(sql, 02, "%s: cannot %s view '%s'", op,
opname, tname);
} else if (isMergeTable(t)) {
return sql_error(sql, 02, "%s: cannot %s merge table '%s'", op,
opname, tname);
+ } else if (isStream(t)) {
+ return sql_error(sql, 02, "%s: cannot %s stream '%s'", op,
opname, tname);
} else if (t->access == TABLE_READONLY) {
return sql_error(sql, 02, "%s: cannot %s read only table '%s'",
op, opname, tname);
}
@@ -411,6 +413,8 @@ update_allowed(mvc *sql, sql_table *t, c
return sql_error(sql, 02, "%s: cannot %s view '%s'", op,
opname, tname);
} else if (isMergeTable(t)) {
return sql_error(sql, 02, "%s: cannot %s merge table '%s'", op,
opname, tname);
+ } else if (isStream(t)) {
+ return sql_error(sql, 02, "%s: cannot %s stream '%s'", op,
opname, tname);
} else if (t->access == TABLE_READONLY || t->access ==
TABLE_APPENDONLY) {
return sql_error(sql, 02, "%s: cannot %s read or append only
table '%s'", op, opname, tname);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list