Changeset: 9b75c288d86c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9b75c288d86c
Modified Files:
        sql/storage/store.c
Branch: Dec2023
Log Message:

small cleanup/comment added


diffs (20 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -6286,6 +6286,7 @@ sql_trans_alter_null(sql_trans *tr, sql_
 
                if ((res = new_column(tr, col, &dup)))
                        return res;
+               col = dup;
                dup->null = isnull;
 
                /* disallow concurrent updates on the column if not null is set 
*/
@@ -6296,7 +6297,7 @@ sql_trans_alter_null(sql_trans *tr, sql_
                        return res;
                if ((res = store_reset_sql_functions(tr, col->t->base.id))) /* 
reset sql functions depending on the table */
                        return res;
-               if (isNew(col) || isnull)
+               if (isNew(col) || isnull) /* new ie can still change, or 
persistent only widen semantics */
                        store->storage_api.col_not_null(tr, col, !isnull);
        }
        return res;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to