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
9fb3f5aa
Commit
9fb3f5aa
authored
Jan 17, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0
parents
5c7d1020
19e81a98
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
19 deletions
+6
-19
mysql-test/r/merge.result
mysql-test/r/merge.result
+1
-1
sql/ha_innodb.cc
sql/ha_innodb.cc
+1
-13
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/opt_sum.cc
sql/opt_sum.cc
+3
-4
No files found.
mysql-test/r/merge.result
View file @
9fb3f5aa
...
@@ -536,7 +536,7 @@ INSERT INTO t2 VALUES (1,2), (2,2);
...
@@ -536,7 +536,7 @@ INSERT INTO t2 VALUES (1,2), (2,2);
CREATE TABLE t ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0', KEY a (a,b)) TYPE=MRG_MyISAM UNION=(t1,t2);
CREATE TABLE t ( a int(11) NOT NULL default '0', b int(11) NOT NULL default '0', KEY a (a,b)) TYPE=MRG_MyISAM UNION=(t1,t2);
select max(b) from t where a = 2;
select max(b) from t where a = 2;
max(b)
max(b)
NULL
2
select max(b) from t1 where a = 2;
select max(b) from t1 where a = 2;
max(b)
max(b)
1
1
...
...
sql/ha_innodb.cc
View file @
9fb3f5aa
...
@@ -2249,19 +2249,7 @@ convert_search_mode_to_innobase(
...
@@ -2249,19 +2249,7 @@ convert_search_mode_to_innobase(
case
HA_READ_AFTER_KEY
:
return
(
PAGE_CUR_G
);
case
HA_READ_AFTER_KEY
:
return
(
PAGE_CUR_G
);
case
HA_READ_BEFORE_KEY
:
return
(
PAGE_CUR_L
);
case
HA_READ_BEFORE_KEY
:
return
(
PAGE_CUR_L
);
case
HA_READ_PREFIX
:
return
(
PAGE_CUR_GE
);
case
HA_READ_PREFIX
:
return
(
PAGE_CUR_GE
);
case
HA_READ_PREFIX_LAST
:
case
HA_READ_PREFIX_LAST
:
return
(
PAGE_CUR_LE_OR_EXTENDS
);
/* ut_print_timestamp(stderr);
fprintf(stderr,
" InnoDB: Warning: Using HA_READ_PREFIX_LAST\n"); */
return
(
PAGE_CUR_LE
);
/* InnoDB does not yet support ..PREFIX_LAST!
We have to add a new search flag
PAGE_CUR_LE_OR_PREFIX to InnoDB. */
/* the above PREFIX flags mean that the last
field in the key value may just be a prefix
of the complete fixed length field */
default:
assert
(
0
);
default:
assert
(
0
);
}
}
...
...
sql/mysqld.cc
View file @
9fb3f5aa
...
@@ -749,7 +749,7 @@ static void *kill_server(void *sig_ptr)
...
@@ -749,7 +749,7 @@ static void *kill_server(void *sig_ptr)
#define RETURN_FROM_KILL_SERVER DBUG_RETURN(0)
#define RETURN_FROM_KILL_SERVER DBUG_RETURN(0)
#else
#else
static
void
__cdecl
kill_server
(
int
sig_ptr
)
static
void
__cdecl
kill_server
(
int
sig_ptr
)
#define RETURN_FROM_KILL_SERVER DBUG_RETURN
#define RETURN_FROM_KILL_SERVER DBUG_
VOID_
RETURN
#endif
#endif
{
{
int
sig
=
(
int
)
(
long
)
sig_ptr
;
// This is passed a int
int
sig
=
(
int
)
(
long
)
sig_ptr
;
// This is passed a int
...
...
sql/opt_sum.cc
View file @
9fb3f5aa
...
@@ -165,10 +165,9 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
...
@@ -165,10 +165,9 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
error
=
table
->
file
->
index_last
(
table
->
record
[
0
])
!=
0
;
error
=
table
->
file
->
index_last
(
table
->
record
[
0
])
!=
0
;
else
else
{
{
(
void
)
table
->
file
->
index_read
(
table
->
record
[
0
],
key_buff
,
error
=
table
->
file
->
index_read
(
table
->
record
[
0
],
key_buff
,
ref
.
key_length
,
ref
.
key_length
,
HA_READ_AFTER_KEY
);
HA_READ_PREFIX_LAST
)
||
error
=
table
->
file
->
index_prev
(
table
->
record
[
0
])
||
key_cmp
(
table
,
key_buff
,
ref
.
key
,
ref
.
key_length
);
key_cmp
(
table
,
key_buff
,
ref
.
key
,
ref
.
key_length
);
}
}
if
(
table
->
key_read
)
if
(
table
->
key_read
)
...
...
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