]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 448614: [Oracle] Logic error in _get_alter_type_sql
authormkanat%bugzilla.org <>
Fri, 1 Aug 2008 05:07:42 +0000 (05:07 +0000)
committermkanat%bugzilla.org <>
Fri, 1 Aug 2008 05:07:42 +0000 (05:07 +0000)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat

Bugzilla/DB/Schema/Oracle.pm

index 6b6fa5c5768e9077e017d5471748b316878db18d..05c2bbeb3b8d703539d9cc0f861a88536db202dc 100644 (file)
@@ -322,7 +322,7 @@ sub _get_alter_type_sql {
     } 
     # If this column is no longer TEXT/VARCHAR, we need to drop the trigger
     # that went along with it.
-    if ( $old_def->{TYPE} !~ /varchar|text/i
+    if ( $old_def->{TYPE} =~ /varchar|text/i
             && $old_def->{NOTNULL}
             && $new_def->{TYPE} !~ /varchar|text/i )
     {