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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8a3e00a0
Commit
8a3e00a0
authored
Feb 02, 2004
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preload.result, key_cache.result, preload.test, key_cache.test, sql_yacc.yy:
Fixed bug #2602 in CACHE INDEX, LOAD INDEX
parent
d4d09768
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
16 deletions
+11
-16
mysql-test/r/key_cache.result
mysql-test/r/key_cache.result
+2
-2
mysql-test/r/preload.result
mysql-test/r/preload.result
+3
-3
mysql-test/t/key_cache.test
mysql-test/t/key_cache.test
+2
-2
mysql-test/t/preload.test
mysql-test/t/preload.test
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-6
No files found.
mysql-test/r/key_cache.result
View file @
8a3e00a0
...
@@ -100,7 +100,7 @@ p i a
...
@@ -100,7 +100,7 @@ p i a
4 3 zzzz
4 3 zzzz
update t1 set p=2 where p=1;
update t1 set p=2 where p=1;
update t2 set i=2 where i=1;
update t2 set i=2 where i=1;
cache index t1 key
s
(`primary`) in keycache1;
cache index t1 key (`primary`) in keycache1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 assign_to_keycache status OK
test.t1 assign_to_keycache status OK
explain select p from t1;
explain select p from t1;
...
@@ -177,7 +177,7 @@ yyyy
...
@@ -177,7 +177,7 @@ yyyy
zzzz
zzzz
cache index t1 in unknown_key_cache;
cache index t1 in unknown_key_cache;
ERROR HY000: Unknown key cache 'unknown_key_cache'
ERROR HY000: Unknown key cache 'unknown_key_cache'
cache index t1 key
s
(unknown_key) in keycache1;
cache index t1 key (unknown_key) in keycache1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 assign_to_keycache error Key column 'unknown_key' doesn't exist in table
test.t1 assign_to_keycache error Key column 'unknown_key' doesn't exist in table
test.t1 assign_to_keycache status Operation failed
test.t1 assign_to_keycache status Operation failed
...
...
mysql-test/r/preload.result
View file @
8a3e00a0
...
@@ -117,7 +117,7 @@ set session preload_buffer_size=1*1024;
...
@@ -117,7 +117,7 @@ set session preload_buffer_size=1*1024;
select @@preload_buffer_size;
select @@preload_buffer_size;
@@preload_buffer_size
@@preload_buffer_size
1024
1024
load index into cache t1, t2 key
s
(primary,b) ignore leaves;
load index into cache t1, t2 key (primary,b) ignore leaves;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
test.t1 preload_keys status OK
test.t2 preload_keys status OK
test.t2 preload_keys status OK
...
@@ -141,7 +141,7 @@ show status like "key_read%";
...
@@ -141,7 +141,7 @@ show status like "key_read%";
Variable_name Value
Variable_name Value
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
load index into cache t3, t2 key
s
(primary,b) ;
load index into cache t3, t2 key (primary,b) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys status OK
test.t2 preload_keys status OK
...
@@ -155,7 +155,7 @@ show status like "key_read%";
...
@@ -155,7 +155,7 @@ show status like "key_read%";
Variable_name Value
Variable_name Value
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
load index into cache t3 key
s (b), t2 keys
(c) ;
load index into cache t3 key
(b), t2 key
(c) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys error Key column 'c' doesn't exist in table
test.t2 preload_keys error Key column 'c' doesn't exist in table
...
...
mysql-test/t/key_cache.test
View file @
8a3e00a0
...
@@ -75,7 +75,7 @@ select * from t2;
...
@@ -75,7 +75,7 @@ select * from t2;
update
t1
set
p
=
2
where
p
=
1
;
update
t1
set
p
=
2
where
p
=
1
;
update
t2
set
i
=
2
where
i
=
1
;
update
t2
set
i
=
2
where
i
=
1
;
cache
index
t1
key
s
(
`primary`
)
in
keycache1
;
cache
index
t1
key
(
`primary`
)
in
keycache1
;
explain
select
p
from
t1
;
explain
select
p
from
t1
;
select
p
from
t1
;
select
p
from
t1
;
...
@@ -101,7 +101,7 @@ select a from t2;
...
@@ -101,7 +101,7 @@ select a from t2;
# Test some error conditions
# Test some error conditions
--
error
1283
--
error
1283
cache
index
t1
in
unknown_key_cache
;
cache
index
t1
in
unknown_key_cache
;
cache
index
t1
key
s
(
unknown_key
)
in
keycache1
;
cache
index
t1
key
(
unknown_key
)
in
keycache1
;
select
@@
keycache2
.
key_buffer_size
;
select
@@
keycache2
.
key_buffer_size
;
select
@@
keycache2
.
key_cache_block_size
;
select
@@
keycache2
.
key_cache_block_size
;
...
...
mysql-test/t/preload.test
View file @
8a3e00a0
...
@@ -81,7 +81,7 @@ flush tables; flush status;
...
@@ -81,7 +81,7 @@ flush tables; flush status;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
set
session
preload_buffer_size
=
1
*
1024
;
set
session
preload_buffer_size
=
1
*
1024
;
select
@@
preload_buffer_size
;
select
@@
preload_buffer_size
;
load
index
into
cache
t1
,
t2
key
s
(
primary
,
b
)
ignore
leaves
;
load
index
into
cache
t1
,
t2
key
(
primary
,
b
)
ignore
leaves
;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t2
where
b
=
'test1'
;
select
count
(
*
)
from
t2
where
b
=
'test1'
;
...
@@ -89,12 +89,12 @@ show status like "key_read%";
...
@@ -89,12 +89,12 @@ show status like "key_read%";
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
load
index
into
cache
t3
,
t2
key
s
(
primary
,
b
)
;
load
index
into
cache
t3
,
t2
key
(
primary
,
b
)
;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
load
index
into
cache
t3
key
s
(
b
),
t2
keys
(
c
)
;
load
index
into
cache
t3
key
(
b
),
t2
key
(
c
)
;
show
status
like
"key_read%"
;
show
status
like
"key_read%"
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
sql/sql_yacc.yy
View file @
8a3e00a0
...
@@ -1615,11 +1615,6 @@ opt_key_or_index:
...
@@ -1615,11 +1615,6 @@ opt_key_or_index:
| key_or_index
| key_or_index
;
;
opt_keys_or_index:
/* empty */ {}
| keys_or_index
;
keys_or_index:
keys_or_index:
KEYS {}
KEYS {}
| INDEX {}
| INDEX {}
...
@@ -2120,7 +2115,7 @@ cache_keys_spec:
...
@@ -2120,7 +2115,7 @@ cache_keys_spec:
cache_key_list_or_empty:
cache_key_list_or_empty:
/* empty */ { Lex->select_lex.use_index_ptr= 0; }
/* empty */ { Lex->select_lex.use_index_ptr= 0; }
| opt_key
s
_or_index '(' key_usage_list2 ')'
| opt_key_or_index '(' key_usage_list2 ')'
{
{
SELECT_LEX *sel= &Lex->select_lex;
SELECT_LEX *sel= &Lex->select_lex;
sel->use_index_ptr= &sel->use_index;
sel->use_index_ptr= &sel->use_index;
...
...
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