Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
0f0a8955
Commit
0f0a8955
authored
Nov 14, 2001
by
bbaetz%cs.mcgill.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 107718 pt 2 - use subtraction instead of the ~ operator, which older
mysql versions don't support. Remove the checksetup.pl restriction, too. r=jake x2
parent
c7434093
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
checksetup.pl
checksetup.pl
+1
-9
process_bug.cgi
process_bug.cgi
+5
-2
No files found.
checksetup.pl
View file @
0f0a8955
...
@@ -773,15 +773,7 @@ my $drh = DBI->install_driver($db_base)
...
@@ -773,15 +773,7 @@ my $drh = DBI->install_driver($db_base)
if
(
$my_db_check
)
{
if
(
$my_db_check
)
{
# Do we have the database itself?
# Do we have the database itself?
# XXX - as part of the fix for dataloss bug 107718, we need the ~
my
$sql_want
=
"3.22.5"
;
# minimum version of MySQL
# operator, which isn't available in earlier versions, despite what
# the docs say. This is temporary, as we won't need bit fiddling
# once bug 60822 is fixed.
# A requirement for 3.23.x may become permenant though - see
# http://bugzilla.mozilla.org/show_bug.cgi?id=87958
my
$sql_want
=
"3.23.5"
;
#my $sql_want = "3.22.5"; # minimum version of MySQL
# original DSN line was:
# original DSN line was:
# my $dsn = "DBI:$db_base:$my_db_name;$my_db_host;$my_db_port";
# my $dsn = "DBI:$db_base:$my_db_name;$my_db_host;$my_db_port";
...
...
process_bug.cgi
View file @
0f0a8955
...
@@ -43,7 +43,8 @@ use vars %::versions,
...
@@ -43,7 +43,8 @@ use vars %::versions,
%::
legal_platform
,
%::
legal_platform
,
%::
legal_priority
,
%::
legal_priority
,
%::
target_milestone
,
%::
target_milestone
,
%::
legal_severity
;
%::
legal_severity
,
%::
superusergroupset
;
my
$whoid
=
confirm_login
();
my
$whoid
=
confirm_login
();
...
@@ -563,7 +564,9 @@ if($::usergroupset ne '0') {
...
@@ -563,7 +564,9 @@ if($::usergroupset ne '0') {
}
}
if
(
$groupAdd
ne
"0"
||
$groupDel
ne
"0"
)
{
if
(
$groupAdd
ne
"0"
||
$groupDel
ne
"0"
)
{
DoComma
();
DoComma
();
$::query
.=
"groupset = ((groupset & ~($groupDel)) | ($groupAdd))"
;
# mysql < 3.23.5 doesn't support the ~ operator, even though
# the docs say that it does
$::query
.=
"groupset = ((groupset & ($::superusergroupset - ($groupDel))) | ($groupAdd))"
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment