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
b9d8f108
Commit
b9d8f108
authored
Dec 18, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple cleanups
parent
6e58a7c4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
30 deletions
+25
-30
mysql-test/t/auto_increment.test
mysql-test/t/auto_increment.test
+1
-1
sql/opt_range.cc
sql/opt_range.cc
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+24
-28
No files found.
mysql-test/t/auto_increment.test
View file @
b9d8f108
...
@@ -82,7 +82,7 @@ insert into t1 values (NULL);
...
@@ -82,7 +82,7 @@ insert into t1 values (NULL);
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
drop
table
t1
;
create
table
t1
(
a
int
not
null
auto_increment
primary
key
)
/*!4
10
02 type=heap */
;
create
table
t1
(
a
int
not
null
auto_increment
primary
key
)
/*!4
01
02 type=heap */
;
insert
into
t1
values
(
NULL
);
insert
into
t1
values
(
NULL
);
insert
into
t1
values
(
-
1
);
insert
into
t1
values
(
-
1
);
select
last_insert_id
();
select
last_insert_id
();
...
...
sql/opt_range.cc
View file @
b9d8f108
...
@@ -1076,7 +1076,6 @@ get_mm_leaf(PARAM *param, Field *field, KEY_PART *key_part,
...
@@ -1076,7 +1076,6 @@ get_mm_leaf(PARAM *param, Field *field, KEY_PART *key_part,
all rows between 'X' and 'X ...'
all rows between 'X' and 'X ...'
*/
*/
uint
length
=
uint2korr
(
str
+
maybe_null
);
uint
length
=
uint2korr
(
str
+
maybe_null
);
char
*
end
;
str2
=
str
+
key_part
->
part_length
+
maybe_null
;
str2
=
str
+
key_part
->
part_length
+
maybe_null
;
/* remove end space */
/* remove end space */
while
(
length
>
0
&&
str
[
length
+
HA_KEY_BLOB_LENGTH
+
maybe_null
-
1
]
==
' '
)
while
(
length
>
0
&&
str
[
length
+
HA_KEY_BLOB_LENGTH
+
maybe_null
-
1
]
==
' '
)
...
...
sql/sql_select.cc
View file @
b9d8f108
...
@@ -1771,10 +1771,7 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
...
@@ -1771,10 +1771,7 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
uint
tables
,
COND
*
cond
,
table_map
normal_tables
)
uint
tables
,
COND
*
cond
,
table_map
normal_tables
)
{
{
uint
and_level
,
i
,
found_eq_constant
;
uint
and_level
,
i
,
found_eq_constant
;
KEY_FIELD
*
key_fields
,
*
end
,
*
field
;
{
KEY_FIELD
*
key_fields
,
*
end
;
KEY_FIELD
*
field
;
if
(
!
(
key_fields
=
(
KEY_FIELD
*
)
if
(
!
(
key_fields
=
(
KEY_FIELD
*
)
thd
->
alloc
(
sizeof
(
key_fields
[
0
])
*
(
thd
->
cond_count
+
1
)
*
2
)))
thd
->
alloc
(
sizeof
(
key_fields
[
0
])
*
(
thd
->
cond_count
+
1
)
*
2
)))
...
@@ -1805,7 +1802,6 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
...
@@ -1805,7 +1802,6 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
/* fill keyuse with found key parts */
/* fill keyuse with found key parts */
for
(;
field
!=
end
;
field
++
)
for
(;
field
!=
end
;
field
++
)
add_key_part
(
keyuse
,
field
);
add_key_part
(
keyuse
,
field
);
}
if
(
thd
->
lex
.
select
->
ftfunc_list
.
elements
)
if
(
thd
->
lex
.
select
->
ftfunc_list
.
elements
)
{
{
...
...
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