Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
943b90fb
Commit
943b90fb
authored
Apr 30, 2009
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.1-bt rep -> local 5.1-bt
parents
f683c5e0
767a835b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
2 deletions
+29
-2
mysql-test/r/upgrade.result
mysql-test/r/upgrade.result
+12
-0
mysql-test/std_data/bug37631.MYD
mysql-test/std_data/bug37631.MYD
+0
-0
mysql-test/std_data/bug37631.MYI
mysql-test/std_data/bug37631.MYI
+0
-0
mysql-test/std_data/bug37631.frm
mysql-test/std_data/bug37631.frm
+0
-0
mysql-test/t/upgrade.test
mysql-test/t/upgrade.test
+14
-0
storage/ibmdb2i/Makefile.am
storage/ibmdb2i/Makefile.am
+1
-0
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+2
-2
No files found.
mysql-test/r/upgrade.result
View file @
943b90fb
...
@@ -57,6 +57,18 @@ s1
...
@@ -57,6 +57,18 @@ s1
1
1
drop table `txu@0023p@0023p1`;
drop table `txu@0023p@0023p1`;
drop table `txu#p#p1`;
drop table `txu#p#p1`;
#
# Bug#37631 Incorrect key file for table after upgrading from 5.0 to 5.1
#
# copy table created using mysql4.0 into the data dir
# check the table created using mysql 4.0
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
# query the table created using mysql 4.0
SELECT * FROM t1;
c1 c2 c3
DROP TABLE t1;
truncate t1;
truncate t1;
drop table t1;
drop table t1;
drop database if exists `tabc`;
drop database if exists `tabc`;
...
...
mysql-test/std_data/bug37631.MYD
0 → 100644
View file @
943b90fb
mysql-test/std_data/bug37631.MYI
0 → 100644
View file @
943b90fb
File added
mysql-test/std_data/bug37631.frm
0 → 100644
View file @
943b90fb
File added
mysql-test/t/upgrade.test
View file @
943b90fb
...
@@ -48,6 +48,20 @@ select * from `txu#p#p1`;
...
@@ -48,6 +48,20 @@ select * from `txu#p#p1`;
drop
table
`txu@0023p@0023p1`
;
drop
table
`txu@0023p@0023p1`
;
drop
table
`txu#p#p1`
;
drop
table
`txu#p#p1`
;
--
echo
#
--
echo
# Bug#37631 Incorrect key file for table after upgrading from 5.0 to 5.1
--
echo
#
--
echo
# copy table created using mysql4.0 into the data dir
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
copy_file
std_data
/
bug37631
.
frm
$MYSQLD_DATADIR
/
test
/
t1
.
frm
;
copy_file
std_data
/
bug37631
.
MYD
$MYSQLD_DATADIR
/
test
/
t1
.
MYD
;
copy_file
std_data
/
bug37631
.
MYI
$MYSQLD_DATADIR
/
test
/
t1
.
MYI
;
--
echo
# check the table created using mysql 4.0
CHECK
TABLE
t1
;
--
echo
# query the table created using mysql 4.0
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
#
#
# Check if old tables work
# Check if old tables work
#
#
...
...
storage/ibmdb2i/Makefile.am
View file @
943b90fb
...
@@ -27,6 +27,7 @@ DEFS = @DEFS@
...
@@ -27,6 +27,7 @@ DEFS = @DEFS@
noinst_HEADERS
=
ha_ibmdb2i.h db2i_collationSupport.h db2i_file.h
\
noinst_HEADERS
=
ha_ibmdb2i.h db2i_collationSupport.h db2i_file.h
\
db2i_ioBuffers.h db2i_blobCollection.h
\
db2i_ioBuffers.h db2i_blobCollection.h
\
db2i_global.h db2i_misc.h db2i_charsetSupport.h db2i_errors.h
\
db2i_global.h db2i_misc.h db2i_charsetSupport.h db2i_errors.h
\
db2i_iconv.h db2i_myconv.h db2i_safeString.h db2i_sqlStatementStream.h
\
db2i_ileBridge.h db2i_validatedPointer.h
db2i_ileBridge.h db2i_validatedPointer.h
EXTRA_LTLIBRARIES
=
ha_ibmdb2i.la
EXTRA_LTLIBRARIES
=
ha_ibmdb2i.la
...
...
storage/myisam/ha_myisam.cc
View file @
943b90fb
...
@@ -414,7 +414,7 @@ int check_definition(MI_KEYDEF *t1_keyinfo, MI_COLUMNDEF *t1_recinfo,
...
@@ -414,7 +414,7 @@ int check_definition(MI_KEYDEF *t1_keyinfo, MI_COLUMNDEF *t1_recinfo,
test
(
t2_keyinfo
[
i
].
flag
&
HA_SPATIAL
)));
test
(
t2_keyinfo
[
i
].
flag
&
HA_SPATIAL
)));
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
if
((
mysql_40_compat
&&
if
((
!
mysql_40_compat
&&
t1_keyinfo
[
i
].
key_alg
!=
t2_keyinfo
[
i
].
key_alg
)
||
t1_keyinfo
[
i
].
key_alg
!=
t2_keyinfo
[
i
].
key_alg
)
||
t1_keyinfo
[
i
].
keysegs
!=
t2_keyinfo
[
i
].
keysegs
)
t1_keyinfo
[
i
].
keysegs
!=
t2_keyinfo
[
i
].
keysegs
)
{
{
...
@@ -446,7 +446,7 @@ int check_definition(MI_KEYDEF *t1_keyinfo, MI_COLUMNDEF *t1_recinfo,
...
@@ -446,7 +446,7 @@ int check_definition(MI_KEYDEF *t1_keyinfo, MI_COLUMNDEF *t1_recinfo,
t1_keysegs_j__type
=
HA_KEYTYPE_VARBINARY1
;
/* purecov: inspected */
t1_keysegs_j__type
=
HA_KEYTYPE_VARBINARY1
;
/* purecov: inspected */
}
}
if
((
mysql_40_compat
&&
if
((
!
mysql_40_compat
&&
t1_keysegs
[
j
].
language
!=
t2_keysegs
[
j
].
language
)
||
t1_keysegs
[
j
].
language
!=
t2_keysegs
[
j
].
language
)
||
t1_keysegs_j__type
!=
t2_keysegs
[
j
].
type
||
t1_keysegs_j__type
!=
t2_keysegs
[
j
].
type
||
t1_keysegs
[
j
].
null_bit
!=
t2_keysegs
[
j
].
null_bit
||
t1_keysegs
[
j
].
null_bit
!=
t2_keysegs
[
j
].
null_bit
||
...
...
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