From: Jiří Netolický Date: Mon, 23 Sep 2013 15:43:00 +0000 (+0200) Subject: Bug 919475: [Oracle] Crash when non-mandatory free text custom fields are left empty... X-Git-Tag: bugzilla-4.4.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38c549a63c98fcdeca5a47edeaeba26bff7591f;p=thirdparty%2Fbugzilla.git Bug 919475: [Oracle] Crash when non-mandatory free text custom fields are left empty on bug creation r=LpSolit a=justdave --- diff --git a/Bugzilla/DB/Schema/Oracle.pm b/Bugzilla/DB/Schema/Oracle.pm index 381906d2e0..a979297263 100644 --- a/Bugzilla/DB/Schema/Oracle.pm +++ b/Bugzilla/DB/Schema/Oracle.pm @@ -204,6 +204,10 @@ sub get_add_column_ddl { } else { @sql = $self->SUPER::get_add_column_ddl(@_); + # Create triggers to deal with empty string. + if ($definition->{TYPE} =~ /varchar|TEXT/i && $definition->{NOTNULL}) { + push(@sql, _get_notnull_trigger_ddl($table, $column)); + } } return @sql;