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
d80d8848
Commit
d80d8848
authored
Dec 19, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 310325: Workaround MySQL bug incorrectly thinking a column contains NULL values
Patch By Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=mkanat, a=justdave
parent
70adf1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Mysql.pm
Bugzilla/DB/Mysql.pm
+11
-1
No files found.
Bugzilla/DB/Mysql.pm
View file @
d80d8848
...
...
@@ -262,6 +262,17 @@ sub bz_setup_database {
print
"\nISAM->MyISAM table conversion done.\n\n"
;
}
# There is a bug in MySQL 4.1.0 - 4.1.15 that makes certain SELECT
# statements fail after a SHOW TABLE STATUS:
# http://bugs.mysql.com/bug.php?id=13535
# This is a workaround, a dummy SELECT to reset the LAST_INSERT_ID.
my
@tables
=
$self
->
bz_table_list_real
();
if
(
lsearch
(
\
@tables
,
'bugs'
)
!=
-
1
&&
$self
->
bz_column_info_real
(
"bugs"
,
"bug_id"
))
{
$self
->
do
(
'SELECT 1 FROM bugs WHERE bug_id IS NULL'
);
}
# Versions of Bugzilla before the existence of Bugzilla::DB::Schema did
# not provide explicit names for the table indexes. This means
# that our upgrades will not be reliable, because we look for the name
...
...
@@ -277,7 +288,6 @@ sub bz_setup_database {
# has existed at least since Bugzilla 2.8, and probably earlier.
# For fixing the inconsistent naming of Schema indexes,
# we also check for one of those inconsistently-named indexes.
my
@tables
=
$self
->
bz_table_list_real
();
if
(
scalar
(
@tables
)
&&
(
$self
->
bz_index_info_real
(
'bugs'
,
'assigned_to'
)
||
$self
->
bz_index_info_real
(
'flags'
,
'flags_bidattid_idx'
))
)
...
...
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