You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// check for columns declared as NOT NULL without a DEFAULT value.
420
+
// Otherwise, col_merge_stmt would fail if changes to other columns are inserted first.
421
+
sql=sqlite3_snprintf((int)blen, buffer, "SELECT count(*) FROM pragma_table_info('%w') WHERE pk=0 AND \"notnull\"=1 AND \"dflt_value\" IS NULL;", name);
422
+
sqlite3_int64count3=dbutils_int_select(db, sql);
423
+
if (count3>0) {
424
+
dbutils_context_result_error(context, "All non-primary key columns declared as NOT NULL must have a DEFAULT value. (table %s)", name);
0 commit comments