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
9749ece2
Commit
9749ece2
authored
Mar 14, 2003
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
f4b165ae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
sql/key.cc
sql/key.cc
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+5
-9
sql/sql_select.h
sql/sql_select.h
+1
-2
No files found.
sql/key.cc
View file @
9749ece2
...
@@ -67,7 +67,7 @@ int find_ref_key(TABLE *table,Field *field, uint *key_length)
...
@@ -67,7 +67,7 @@ int find_ref_key(TABLE *table,Field *field, uint *key_length)
/* Copy a key from record to some buffer */
/* Copy a key from record to some buffer */
/* if length == 0 then copy hole key */
/* if length == 0 then copy
w
hole key */
void
key_copy
(
byte
*
key
,
TABLE
*
table
,
uint
idx
,
uint
key_length
)
void
key_copy
(
byte
*
key
,
TABLE
*
table
,
uint
idx
,
uint
key_length
)
{
{
...
...
sql/sql_select.cc
View file @
9749ece2
...
@@ -2757,19 +2757,15 @@ static bool create_ref_for_key(JOIN *join, JOIN_TAB *j, KEYUSE *org_keyuse,
...
@@ -2757,19 +2757,15 @@ static bool create_ref_for_key(JOIN *join, JOIN_TAB *j, KEYUSE *org_keyuse,
if
(
!
keyuse
->
used_tables
&&
if
(
!
keyuse
->
used_tables
&&
!
(
join
->
select_options
&
SELECT_DESCRIBE
))
!
(
join
->
select_options
&
SELECT_DESCRIBE
))
{
// Compare against constant
{
// Compare against constant
store_key_item
*
tmp
=
new
store_key_item
(
thd
,
store_key_item
tmp
(
thd
,
keyinfo
->
key_part
[
i
].
field
,
keyinfo
->
key_part
[
i
].
field
,
(
char
*
)
key_buff
+
maybe_null
,
(
char
*
)
key_buff
+
maybe_null
?
(
char
*
)
key_buff
:
0
,
maybe_null
,
keyinfo
->
key_part
[
i
].
length
,
keyuse
->
val
);
maybe_null
?
(
char
*
)
key_buff
:
0
,
keyinfo
->
key_part
[
i
].
length
,
keyuse
->
val
);
if
(
thd
->
is_fatal_error
)
if
(
thd
->
is_fatal_error
)
{
{
return
TRUE
;
return
TRUE
;
}
}
tmp
->
copy
();
tmp
.
copy
();
}
}
else
else
*
ref_key
++=
get_store_key
(
thd
,
*
ref_key
++=
get_store_key
(
thd
,
...
...
sql/sql_select.h
View file @
9749ece2
...
@@ -174,7 +174,7 @@ class JOIN :public Sql_alloc
...
@@ -174,7 +174,7 @@ class JOIN :public Sql_alloc
Item_sum
**
sum_funcs
;
Item_sum
**
sum_funcs
;
Procedure
*
procedure
;
Procedure
*
procedure
;
Item
*
having
;
Item
*
having
;
Item
*
tmp_having
;
// To store Having when processed te
n
porary table
Item
*
tmp_having
;
// To store Having when processed te
m
porary table
uint
select_options
;
uint
select_options
;
select_result
*
result
;
select_result
*
result
;
TMP_TABLE_PARAM
tmp_table_param
;
TMP_TABLE_PARAM
tmp_table_param
;
...
@@ -307,7 +307,6 @@ class store_key :public Sql_alloc
...
@@ -307,7 +307,6 @@ class store_key :public Sql_alloc
{
{
protected:
protected:
Field
*
to_field
;
// Store data here
Field
*
to_field
;
// Store data here
Field
*
key_field
;
// Copy of key field
char
*
null_ptr
;
char
*
null_ptr
;
char
err
;
char
err
;
public:
public:
...
...
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