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
9e10645c
Commit
9e10645c
authored
Jan 13, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix valgrind warning + post-merge fixes.
parent
443cafc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sql/ha_innodb.cc
sql/ha_innodb.cc
+3
-3
strings/ctype-uca.c
strings/ctype-uca.c
+2
-2
No files found.
sql/ha_innodb.cc
View file @
9e10645c
...
@@ -4033,8 +4033,8 @@ ha_innobase::create(
...
@@ -4033,8 +4033,8 @@ ha_innobase::create(
DBUG_ASSERT
(
innobase_table
!=
0
);
DBUG_ASSERT
(
innobase_table
!=
0
);
if
((
thd
->
lex
->
create_info
.
used_fields
&
HA_CREATE_USED_AUTO
)
&&
if
((
create_info
->
used_fields
&
HA_CREATE_USED_AUTO
)
&&
(
thd
->
lex
->
create_info
.
auto_increment_value
!=
0
))
{
(
create_info
->
auto_increment_value
!=
0
))
{
/* Query was ALTER TABLE...AUTO_INCREMENT = x; or
/* Query was ALTER TABLE...AUTO_INCREMENT = x; or
CREATE TABLE ...AUTO_INCREMENT = x; Find out a table
CREATE TABLE ...AUTO_INCREMENT = x; Find out a table
...
@@ -4043,7 +4043,7 @@ ha_innobase::create(
...
@@ -4043,7 +4043,7 @@ ha_innobase::create(
auto increment field if the value is greater than the
auto increment field if the value is greater than the
maximum value in the column. */
maximum value in the column. */
auto_inc_value
=
thd
->
lex
->
create_info
.
auto_increment_value
;
auto_inc_value
=
create_info
->
auto_increment_value
;
dict_table_autoinc_initialize
(
innobase_table
,
auto_inc_value
);
dict_table_autoinc_initialize
(
innobase_table
,
auto_inc_value
);
}
}
...
...
strings/ctype-uca.c
View file @
9e10645c
...
@@ -7220,7 +7220,7 @@ static int my_strnxfrm_uca(CHARSET_INFO *cs,
...
@@ -7220,7 +7220,7 @@ static int my_strnxfrm_uca(CHARSET_INFO *cs,
uchar
*
dst
,
uint
dstlen
,
uchar
*
dst
,
uint
dstlen
,
const
uchar
*
src
,
uint
srclen
)
const
uchar
*
src
,
uint
srclen
)
{
{
uchar
*
de
=
dst
+
(
dstlen
&
(
uint
)
~
1
);
/
/ add even length for easier code
uchar
*
de
=
dst
+
(
dstlen
&
(
uint
)
~
1
);
/
* add even length for easier code */
int
s_res
;
int
s_res
;
my_uca_scanner
scanner
;
my_uca_scanner
scanner
;
scanner_handler
->
init
(
&
scanner
,
cs
,
src
,
srclen
);
scanner_handler
->
init
(
&
scanner
,
cs
,
src
,
srclen
);
...
@@ -7238,7 +7238,7 @@ static int my_strnxfrm_uca(CHARSET_INFO *cs,
...
@@ -7238,7 +7238,7 @@ static int my_strnxfrm_uca(CHARSET_INFO *cs,
dst
[
1
]
=
s_res
&
0xFF
;
dst
[
1
]
=
s_res
&
0xFF
;
dst
+=
2
;
dst
+=
2
;
}
}
if
(
dstlen
&
1
)
/
/ if odd number then fill the last char
if
(
dstlen
&
1
)
/
* if odd number then fill the last char */
*
dst
=
'\0'
;
*
dst
=
'\0'
;
return
dstlen
;
return
dstlen
;
...
...
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