Changeset: b8bc6d228e06 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b8bc6d228e06
Modified Files:
        sql/server/rel_schema.c
Branch: Oct2014
Log Message:

fix for bug 3565


diffs (14 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
@@ -1069,7 +1069,9 @@ rel_alter_table(mvc *sql, dlist *qname, 
                s = cur_schema(sql);
 
        if ((t = mvc_bind_table(sql, s, tname)) == NULL) {
-               return sql_error(sql, 02, "42S02!ALTER TABLE: no such table 
'%s'", tname);
+               if (mvc_bind_table(sql, mvc_bind_schema(sql, "tmp"), tname) != 
NULL) 
+                       return sql_error(sql, 02, "42S02!ALTER TABLE: not 
supported on TEMPORARY table '%s'", tname);
+               return sql_error(sql, 02, "42S02!ALTER TABLE: no such table 
'%s' in schema '%s'", tname, s->base.name);
        } else {
                node *n;
                sql_rel *res = NULL, *r;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to