summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema/Oracle.pm
diff options
context:
space:
mode:
authorJiří Netolický <netolish@netolish.cz>2013-09-23 17:44:20 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-09-23 17:44:20 +0200
commit79d280aa1b772eb53fc5772341a79c8a34456767 (patch)
tree6a236d7c501e5a6da1e551baf5aac5e6b5298914 /Bugzilla/DB/Schema/Oracle.pm
parent869706f19fa2646b600a3a6d681fa4d2c797b0d2 (diff)
downloadbugzilla-79d280aa1b772eb53fc5772341a79c8a34456767.tar.gz
bugzilla-79d280aa1b772eb53fc5772341a79c8a34456767.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/Oracle.pm')
-rw-r--r--Bugzilla/DB/Schema/Oracle.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Oracle.pm b/Bugzilla/DB/Schema/Oracle.pm
index 9fafc4515..a61b1e323 100644
--- a/Bugzilla/DB/Schema/Oracle.pm
+++ b/Bugzilla/DB/Schema/Oracle.pm
@@ -219,6 +219,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;