BUG: before-insert trigger gets ignored while bulk-insert / import
Posted: Tue 27 Nov 2012 10:46
dear support,
today i noticed a "little" bug: i tried to insert a CSV file into a table with a date-field
that was declared as "NOT NULL" but a trigger exists (before insert: set field = NOW()).
a normal insert of course works, because the before-insert-trigger catches the call and sets the "not null field" to NOW().
the bulk insert via the import-funktion of dbforge forces me to enter a default-value
and even if i insert one, the import function still gets me an error that "no" default is set, even i set one, that´s confusing.
if a before insert trigger exists for a "not null field", it would be perfect to check this so the import function do not force me to insert a not needed value.
regards,
micha
today i noticed a "little" bug: i tried to insert a CSV file into a table with a date-field
that was declared as "NOT NULL" but a trigger exists (before insert: set field = NOW()).
a normal insert of course works, because the before-insert-trigger catches the call and sets the "not null field" to NOW().
the bulk insert via the import-funktion of dbforge forces me to enter a default-value
and even if i insert one, the import function still gets me an error that "no" default is set, even i set one, that´s confusing.
if a before insert trigger exists for a "not null field", it would be perfect to check this so the import function do not force me to insert a not needed value.
regards,
micha