summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-29 00:38:45 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-29 00:38:45 +0200
commit01a6545ec1a041e21f4a2542fc4c2c0eeeec52ba (patch)
tree4e1ca26b6b32c8f1795a3bf36fbcf78db24f1c83 /Bugzilla/Install
parent5ba4b1aff6564126b3d0b1e7741b992d178d8f66 (diff)
downloadbugzilla-01a6545ec1a041e21f4a2542fc4c2c0eeeec52ba.tar.gz
bugzilla-01a6545ec1a041e21f4a2542fc4c2c0eeeec52ba.tar.xz
Bug 602456: Make Search.pm not quote numeric input for numeric fields
when generating SQL. r=glob, a=mkanat
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm5
1 files changed, 5 insertions, 0 deletions
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.