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
44272f5e
Commit
44272f5e
authored
Dec 11, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7df06658
75ee7198
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
29 deletions
+23
-29
mysql-test/suite/ibmdb2i/r/ibmdb2i_bug_49329.result
mysql-test/suite/ibmdb2i/r/ibmdb2i_bug_49329.result
+9
-0
mysql-test/suite/ibmdb2i/t/ibmdb2i_bug_49329.test
mysql-test/suite/ibmdb2i/t/ibmdb2i_bug_49329.test
+10
-0
sql/mysqld.cc
sql/mysqld.cc
+2
-1
storage/ibmdb2i/db2i_constraints.cc
storage/ibmdb2i/db2i_constraints.cc
+1
-27
storage/ibmdb2i/ha_ibmdb2i.cc
storage/ibmdb2i/ha_ibmdb2i.cc
+1
-1
No files found.
mysql-test/suite/ibmdb2i/r/ibmdb2i_bug_49329.result
0 → 100644
View file @
44272f5e
create table ABC (i int) engine=ibmdb2i;
insert into ABC values(1);
create table abc (i int) engine=ibmdb2i;
insert into abc values (2);
select * from ABC;
i
1
drop table ABC;
drop table abc;
mysql-test/suite/ibmdb2i/t/ibmdb2i_bug_49329.test
0 → 100644
View file @
44272f5e
source
suite
/
ibmdb2i
/
include
/
have_ibmdb2i
.
inc
;
source
include
/
have_case_sensitive_file_system
.
inc
;
create
table
ABC
(
i
int
)
engine
=
ibmdb2i
;
insert
into
ABC
values
(
1
);
create
table
abc
(
i
int
)
engine
=
ibmdb2i
;
insert
into
abc
values
(
2
);
select
*
from
ABC
;
drop
table
ABC
;
drop
table
abc
;
sql/mysqld.cc
View file @
44272f5e
...
...
@@ -5946,7 +5946,8 @@ Disable with --skip-large-pages.",
#endif
{
"init-rpl-role"
,
OPT_INIT_RPL_ROLE
,
"Set the replication role."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"init-slave"
,
OPT_INIT_SLAVE
,
"Command(s) that are executed when a slave connects to this master"
,
{
"init-slave"
,
OPT_INIT_SLAVE
,
"Command(s) that are executed by a slave server \
each time the SQL thread starts."
,
(
uchar
**
)
&
opt_init_slave
,
(
uchar
**
)
&
opt_init_slave
,
0
,
GET_STR_ALLOC
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"language"
,
'L'
,
...
...
storage/ibmdb2i/db2i_constraints.cc
View file @
44272f5e
...
...
@@ -329,7 +329,7 @@ char* ha_ibmdb2i::get_foreign_key_create_info(void)
/* Process the constraint name. */
info
.
strncat
(
STRING_WITH_LEN
(
" CONSTRAINT "
));
info
.
strncat
(
STRING_WITH_LEN
(
"
,
\n
CONSTRAINT "
));
convNameForCreateInfo
(
thd
,
info
,
FKCstDef
->
CstName
.
Name
,
FKCstDef
->
CstName
.
Len
);
...
...
@@ -398,7 +398,6 @@ char* ha_ibmdb2i::get_foreign_key_create_info(void)
if
((
i
+
1
)
<
cstCnt
)
{
info
.
strcat
(
','
);
tempPtr
=
(
char
*
)
cstHdr
+
cstHdr
->
CstLen
;
cstHdr
=
(
constraint_hdr_t
*
)(
tempPtr
);
}
...
...
@@ -671,28 +670,3 @@ uint ha_ibmdb2i::referenced_by_foreign_key(void)
}
DBUG_RETURN
(
count
);
}
bool
ha_ibmdb2i
::
check_if_incompatible_data
(
HA_CREATE_INFO
*
info
,
uint
table_changes
)
{
DBUG_ENTER
(
"ha_ibmdb2i::check_if_incompatible_data"
);
uint
i
;
/* Check that auto_increment value and field definitions were
not changed. */
if
((
info
->
used_fields
&
HA_CREATE_USED_AUTO
&&
info
->
auto_increment_value
!=
0
)
||
table_changes
!=
IS_EQUAL_YES
)
DBUG_RETURN
(
COMPATIBLE_DATA_NO
);
/* Check if any fields were renamed. */
for
(
i
=
0
;
i
<
table
->
s
->
fields
;
i
++
)
{
Field
*
field
=
table
->
field
[
i
];
if
(
field
->
flags
&
FIELD_IS_RENAMED
)
{
DBUG_PRINT
(
"info"
,
(
"Field has been renamed, copy table"
));
DBUG_RETURN
(
COMPATIBLE_DATA_NO
);
}
}
DBUG_RETURN
(
COMPATIBLE_DATA_YES
);
}
storage/ibmdb2i/ha_ibmdb2i.cc
View file @
44272f5e
...
...
@@ -284,7 +284,7 @@ static int ibmdb2i_init_func(void *p)
was_ILE_inited
=
false
;
ibmdb2i_hton
=
(
handlerton
*
)
p
;
VOID
(
pthread_mutex_init
(
&
ibmdb2i_mutex
,
MY_MUTEX_INIT_FAST
));
(
void
)
hash_init
(
&
ibmdb2i_open_tables
,
system_charset_info
,
32
,
0
,
0
,
(
void
)
hash_init
(
&
ibmdb2i_open_tables
,
table_alias_charset
,
32
,
0
,
0
,
(
hash_get_key
)
ibmdb2i_get_key
,
0
,
0
);
ibmdb2i_hton
->
state
=
SHOW_OPTION_YES
;
...
...
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