diff options
author | Jiří Netolický <netolish@netolish.cz> | 2013-09-23 17:41:26 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-09-23 17:41:26 +0200 |
commit | 9ddb229412d652238dabd39f8c46d2e81c0466f6 (patch) | |
tree | c48dc42e5aacb87f0a6940ffac57e2cca3e259ac /Bugzilla/DB/Schema | |
parent | a3c710bb310bd7524ec564797e9148ddfa5b57c8 (diff) | |
download | bugzilla-9ddb229412d652238dabd39f8c46d2e81c0466f6.tar.gz bugzilla-9ddb229412d652238dabd39f8c46d2e81c0466f6.tar.xz |
Bug 919475: [Oracle] Crash when non-mandatory free text custom fields are left empty on bug creation
r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla/DB/Schema')
-rw-r--r-- | Bugzilla/DB/Schema/Oracle.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Oracle.pm b/Bugzilla/DB/Schema/Oracle.pm index 1bed5b5ca..1554a0fe1 100644 --- a/Bugzilla/DB/Schema/Oracle.pm +++ b/Bugzilla/DB/Schema/Oracle.pm @@ -205,6 +205,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; |