Commit 9ddb2294 authored by Jiří Netolický's avatar Jiří Netolický Committed by Frédéric Buclin

Bug 919475: [Oracle] Crash when non-mandatory free text custom fields are left…

Bug 919475: [Oracle] Crash when non-mandatory free text custom fields are left empty on bug creation r=LpSolit a=justdave
parent a3c710bb
...@@ -205,6 +205,10 @@ sub get_add_column_ddl { ...@@ -205,6 +205,10 @@ sub get_add_column_ddl {
} }
else { else {
@sql = $self->SUPER::get_add_column_ddl(@_); @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; return @sql;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment