diff --git a/dblayeroo.php b/dblayeroo.php index d7755ea..5f880d4 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2515,10 +2515,12 @@ class dblayeroo continue; } if (in_array ("not null", $params) && + ! in_array ("autoincrement", $params) && $values[$field] === null) { $errors[$field] = sprintf (dgettext ("domframework", - "Field '%s' null and defined as not null")); + "Field '%s' null and defined as NOT NULL and ". + "not Autoincrement"), $field); continue; } if (! is_string ($values[$field]) && ! is_integer ($values[$field]) &&