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
c04660e8
Commit
c04660e8
authored
Mar 30, 2006
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup during review of new pushed code
parent
84e7c963
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
sql/ha_heap.cc
sql/ha_heap.cc
+7
-11
strings/ctype-ucs2.c
strings/ctype-ucs2.c
+2
-2
tests/mysql_client_test.c
tests/mysql_client_test.c
+3
-3
No files found.
sql/ha_heap.cc
View file @
c04660e8
...
...
@@ -480,17 +480,13 @@ ha_rows ha_heap::records_in_range(uint inx, key_range *min_key,
min_key
->
flag
!=
HA_READ_KEY_EXACT
||
max_key
->
flag
!=
HA_READ_AFTER_KEY
)
return
HA_POS_ERROR
;
// Can only use exact keys
else
{
if
(
records
<=
1
)
return
records
;
else
{
/* Assert that info() did run. We need current statistics here. */
DBUG_ASSERT
(
key_stat_version
==
file
->
s
->
key_stat_version
);
return
key
->
rec_per_key
[
key
->
key_parts
-
1
];
}
}
}
...
...
strings/ctype-ucs2.c
View file @
c04660e8
...
...
@@ -253,8 +253,8 @@ static int my_strnncollsp_ucs2(CHARSET_INFO *cs __attribute__((unused)),
uint
minlen
;
/* extra safety to make sure the lengths are even numbers */
slen
=
(
slen
>>
1
)
<<
1
;
tlen
=
(
tlen
>>
1
)
<<
1
;
slen
=
slen
&
~
(
uint
)
1
;
tlen
=
tlen
&
~
(
uint
)
1
;
se
=
s
+
slen
;
te
=
t
+
tlen
;
...
...
tests/mysql_client_test.c
View file @
c04660e8
...
...
@@ -11719,13 +11719,13 @@ static void test_bug12744()
rc
=
mysql_kill
(
mysql
,
mysql_thread_id
(
mysql
));
DIE_UNLESS
(
rc
==
0
);
if
(
rc
=
mysql_stmt_execute
(
prep_stmt
))
if
(
(
rc
=
mysql_stmt_execute
(
prep_stmt
)
))
{
if
(
rc
=
mysql_stmt_reset
(
prep_stmt
))
if
(
(
rc
=
mysql_stmt_reset
(
prep_stmt
)
))
printf
(
"OK!
\n
"
);
else
{
printf
(
"Error!"
);
printf
(
"Error!
\n
"
);
DIE_UNLESS
(
1
==
0
);
}
}
...
...
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