From 01a6545ec1a041e21f4a2542fc4c2c0eeeec52ba Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 28 Oct 2010 15:38:45 -0700 Subject: Bug 602456: Make Search.pm not quote numeric input for numeric fields when generating SQL. r=glob, a=mkanat --- Bugzilla/Install/DB.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 4dcf0d637..47c8873fa 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -115,6 +115,11 @@ sub update_fielddefs_definition { # 2010-04-05 dkl@redhat.com - Bug 479400 _migrate_field_visibility_value(); + $dbh->bz_add_column('fielddefs', 'is_numeric', + {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'}); + $dbh->do('UPDATE fielddefs SET is_numeric = 1 WHERE type = ' + . FIELD_TYPE_BUG_ID); + # Remember, this is not the function for adding general table changes. # That is below. Add new changes to the fielddefs table above this # comment. -- cgit v1.2.3-24-g4f1b