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
f2719e88
Commit
f2719e88
authored
Jun 01, 2006
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-5.0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
parents
0754cb78
d350bd90
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
51 additions
and
22 deletions
+51
-22
mysql-test/include/common-tests.inc
mysql-test/include/common-tests.inc
+2
-2
mysql-test/r/compress.result
mysql-test/r/compress.result
+2
-2
mysql-test/r/explain.result
mysql-test/r/explain.result
+2
-2
mysql-test/r/key_cache.result
mysql-test/r/key_cache.result
+2
-2
mysql-test/r/preload.result
mysql-test/r/preload.result
+2
-2
mysql-test/r/select.result
mysql-test/r/select.result
+12
-2
mysql-test/r/view.result
mysql-test/r/view.result
+1
-1
mysql-test/t/explain.test
mysql-test/t/explain.test
+2
-2
mysql-test/t/select.test
mysql-test/t/select.test
+17
-2
mysql-test/t/view.test
mysql-test/t/view.test
+1
-1
scripts/make_sharedlib_distribution.sh
scripts/make_sharedlib_distribution.sh
+4
-2
scripts/make_win_src_distribution.sh
scripts/make_win_src_distribution.sh
+1
-0
sql/sql_base.cc
sql/sql_base.cc
+3
-2
No files found.
mysql-test/include/common-tests.inc
View file @
f2719e88
...
@@ -1296,9 +1296,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
...
@@ -1296,9 +1296,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
# The next should give an error
# The next should give an error
#
#
--
error
1
072
--
error
1
176
explain
select
fld3
from
t2
ignore
index
(
fld3
,
not_used
);
explain
select
fld3
from
t2
ignore
index
(
fld3
,
not_used
);
--
error
1
072
--
error
1
176
explain
select
fld3
from
t2
use
index
(not_used)
;
explain
select
fld3
from
t2
use
index
(not_used)
;
#
#
...
...
mysql-test/r/compress.result
View file @
f2719e88
...
@@ -145,9 +145,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
...
@@ -145,9 +145,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
explain select fld3 from t2 ignore index (fld3,not_used);
explain select fld3 from t2 ignore index (fld3,not_used);
ERROR
42000: Key column 'not_used' doesn't exist in table
ERROR
HY000: Key 'not_used' doesn't exist in table 't2'
explain select fld3 from t2 use index (not_used);
explain select fld3 from t2 use index (not_used);
ERROR
42000: Key column 'not_used' doesn't exist in table
ERROR
HY000: Key 'not_used' doesn't exist in table 't2'
select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
fld3
fld3
honeysuckle
honeysuckle
...
...
mysql-test/r/explain.result
View file @
f2719e88
...
@@ -24,9 +24,9 @@ explain select * from t1 use key (str,str) where str="foo";
...
@@ -24,9 +24,9 @@ explain select * from t1 use key (str,str) where str="foo";
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const str str 11 const 1
1 SIMPLE t1 const str str 11 const 1
explain select * from t1 use key (str,str,foo) where str="foo";
explain select * from t1 use key (str,str,foo) where str="foo";
ERROR
42000: Key column 'foo' doesn't exist in table
ERROR
HY000: Key 'foo' doesn't exist in table 't1'
explain select * from t1 ignore key (str,str,foo) where str="foo";
explain select * from t1 ignore key (str,str,foo) where str="foo";
ERROR
42000: Key column 'foo' doesn't exist in table
ERROR
HY000: Key 'foo' doesn't exist in table 't1'
drop table t1;
drop table t1;
explain select 1;
explain select 1;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
...
mysql-test/r/key_cache.result
View file @
f2719e88
...
@@ -191,10 +191,10 @@ cache index t1 in unknown_key_cache;
...
@@ -191,10 +191,10 @@ 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 (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
'unknown_key' doesn't exist in table 't1'
test.t1 assign_to_keycache status Operation failed
test.t1 assign_to_keycache status Operation failed
Warnings:
Warnings:
Error 1
072 Key column 'unknown_key' doesn't exist in table
Error 1
176 Key 'unknown_key' doesn't exist in table 't1'
select @@keycache2.key_buffer_size;
select @@keycache2.key_buffer_size;
@@keycache2.key_buffer_size
@@keycache2.key_buffer_size
4194304
4194304
...
...
mysql-test/r/preload.result
View file @
f2719e88
...
@@ -160,11 +160,11 @@ Key_reads 0
...
@@ -160,11 +160,11 @@ Key_reads 0
load index into cache t3 key (b), t2 key (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
'c' doesn't exist in table 't2'
test.t2 preload_keys status Operation failed
test.t2 preload_keys status Operation failed
Warnings:
Warnings:
Error 1146 Table 'test.t3' doesn't exist
Error 1146 Table 'test.t3' doesn't exist
Error 1
072 Key column 'c' doesn't exist in table
Error 1
176 Key 'c' doesn't exist in table 't2'
show status like "key_read%";
show status like "key_read%";
Variable_name Value
Variable_name Value
Key_read_requests 0
Key_read_requests 0
...
...
mysql-test/r/select.result
View file @
f2719e88
...
@@ -144,9 +144,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
...
@@ -144,9 +144,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
1 SIMPLE t2 ref fld3 fld3 30 const 1 Using where; Using index
explain select fld3 from t2 ignore index (fld3,not_used);
explain select fld3 from t2 ignore index (fld3,not_used);
ERROR
42000: Key column 'not_used' doesn't exist in table
ERROR
HY000: Key 'not_used' doesn't exist in table 't2'
explain select fld3 from t2 use index (not_used);
explain select fld3 from t2 use index (not_used);
ERROR
42000: Key column 'not_used' doesn't exist in table
ERROR
HY000: Key 'not_used' doesn't exist in table 't2'
select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
select t2.fld3 from t2 where fld3 >= 'honeysuckle' and fld3 <= 'honoring' order by fld3;
fld3
fld3
honeysuckle
honeysuckle
...
@@ -2716,6 +2716,16 @@ select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 fro
...
@@ -2716,6 +2716,16 @@ select * from t1 where f1 in (select f3 from t2 where (f3,f4)= (select f3,f4 fro
f1 f2
f1 f2
1 1
1 1
drop table t1,t2;
drop table t1,t2;
CREATE TABLE t1 (a int, INDEX idx(a));
INSERT INTO t1 VALUES (2), (3), (1);
EXPLAIN SELECT * FROM t1 IGNORE INDEX (idx);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3
EXPLAIN SELECT * FROM t1 IGNORE INDEX (a);
ERROR HY000: Key 'a' doesn't exist in table 't1'
EXPLAIN SELECT * FROM t1 FORCE INDEX (a);
ERROR HY000: Key 'a' doesn't exist in table 't1'
DROP TABLE t1;
CREATE TABLE t1 ( city char(30) );
CREATE TABLE t1 ( city char(30) );
INSERT INTO t1 VALUES ('London');
INSERT INTO t1 VALUES ('London');
INSERT INTO t1 VALUES ('Paris');
INSERT INTO t1 VALUES ('Paris');
...
...
mysql-test/r/view.result
View file @
f2719e88
...
@@ -614,7 +614,7 @@ drop table t1;
...
@@ -614,7 +614,7 @@ drop table t1;
create table t1 (a int, b int);
create table t1 (a int, b int);
create view v1 as select a, sum(b) from t1 group by a;
create view v1 as select a, sum(b) from t1 group by a;
select b from v1 use index (some_index) where b=1;
select b from v1 use index (some_index) where b=1;
ERROR
42000: Key column 'some_index' doesn't exist in table
ERROR
HY000: Key 'some_index' doesn't exist in table 'v1'
drop view v1;
drop view v1;
drop table t1;
drop table t1;
create table t1 (col1 char(5),col2 char(5));
create table t1 (col1 char(5),col2 char(5));
...
...
mysql-test/t/explain.test
View file @
f2719e88
...
@@ -15,9 +15,9 @@ explain select * from t1 ignore key (str) where str="foo";
...
@@ -15,9 +15,9 @@ explain select * from t1 ignore key (str) where str="foo";
explain
select
*
from
t1
use
key
(str,str) where str="foo"
;
explain
select
*
from
t1
use
key
(str,str) where str="foo"
;
#The following should give errors
#The following should give errors
--
error
1
072
--
error
1
176
explain
select
*
from
t1
use
key
(str,str,foo) where str="foo"
;
explain
select
*
from
t1
use
key
(str,str,foo) where str="foo"
;
--
error
1
072
--
error
1
176
explain
select
*
from
t1
ignore
key
(
str
,
str
,
foo
)
where
str
=
"foo"
;
explain
select
*
from
t1
ignore
key
(
str
,
str
,
foo
)
where
str
=
"foo"
;
drop
table
t1
;
drop
table
t1
;
...
...
mysql-test/t/select.test
View file @
f2719e88
...
@@ -1296,9 +1296,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
...
@@ -1296,9 +1296,9 @@ explain select fld3 from t2 use index (fld1,fld3) where fld3 = 'honeysuckle';
# The next should give an error
# The next should give an error
#
#
--
error
1
072
--
error
1
176
explain
select
fld3
from
t2
ignore
index
(
fld3
,
not_used
);
explain
select
fld3
from
t2
ignore
index
(
fld3
,
not_used
);
--
error
1
072
--
error
1
176
explain
select
fld3
from
t2
use
index
(not_used)
;
explain
select
fld3
from
t2
use
index
(not_used)
;
#
#
...
@@ -2264,6 +2264,21 @@ insert into t2 values(1,1);
...
@@ -2264,6 +2264,21 @@ insert into t2 values(1,1);
select
*
from
t1
where
f1
in
(
select
f3
from
t2
where
(
f3
,
f4
)
=
(
select
f3
,
f4
from
t2
));
select
*
from
t1
where
f1
in
(
select
f3
from
t2
where
(
f3
,
f4
)
=
(
select
f3
,
f4
from
t2
));
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #17873: confusing error message when IGNORE INDEX refers a column name
#
CREATE
TABLE
t1
(
a
int
,
INDEX
idx
(
a
));
INSERT
INTO
t1
VALUES
(
2
),
(
3
),
(
1
);
EXPLAIN
SELECT
*
FROM
t1
IGNORE
INDEX
(
idx
);
--
error
1176
EXPLAIN
SELECT
*
FROM
t1
IGNORE
INDEX
(
a
);
--
error
1176
EXPLAIN
SELECT
*
FROM
t1
FORCE
INDEX
(
a
);
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
#
...
...
mysql-test/t/view.test
View file @
f2719e88
...
@@ -516,7 +516,7 @@ drop table t1;
...
@@ -516,7 +516,7 @@ drop table t1;
#
#
create
table
t1
(
a
int
,
b
int
);
create
table
t1
(
a
int
,
b
int
);
create
view
v1
as
select
a
,
sum
(
b
)
from
t1
group
by
a
;
create
view
v1
as
select
a
,
sum
(
b
)
from
t1
group
by
a
;
--
error
1
072
--
error
1
176
select
b
from
v1
use
index
(some_index) where b=1
;
select
b
from
v1
use
index
(some_index) where b=1
;
drop
view
v1
;
drop
view
v1
;
drop
table
t1
;
drop
table
t1
;
...
...
scripts/make_sharedlib_distribution.sh
View file @
f2719e88
...
@@ -45,9 +45,11 @@ fi
...
@@ -45,9 +45,11 @@ fi
mkdir
-p
$BASE
/lib
mkdir
-p
$BASE
/lib
for
i
in
\
for
i
in
\
libmysql/.libs/libmysqlclient.s
{
l,o
}
*
\
libmysql/.libs/libmysqlclient.so
*
\
libmysql/.libs/libmysqlclient.sl
*
\
libmysql/.libs/libmysqlclient
*
.dylib
\
libmysql/.libs/libmysqlclient
*
.dylib
\
libmysql_r/.libs/libmysqlclient_r.s
{
l,o
}
*
\
libmysql_r/.libs/libmysqlclient_r.so
*
\
libmysql_r/.libs/libmysqlclient_r.sl
*
\
libmysql_r/.libs/libmysqlclient_r
*
.dylib
libmysql_r/.libs/libmysqlclient_r
*
.dylib
do
do
if
[
-f
$i
]
if
[
-f
$i
]
...
...
scripts/make_win_src_distribution.sh
View file @
f2719e88
...
@@ -345,6 +345,7 @@ mv $BASE/sql/sql_yacc.cpp-new $BASE/sql/sql_yacc.cpp
...
@@ -345,6 +345,7 @@ mv $BASE/sql/sql_yacc.cpp-new $BASE/sql/sql_yacc.cpp
find
$BASE
\(
-name
"*.cnf"
-o
-name
"*.ini"
\
find
$BASE
\(
-name
"*.cnf"
-o
-name
"*.ini"
\
-o
-name
COPYING
-o
-name
ChangeLog
-o
-name
EXCEPTIONS-CLIENT
\
-o
-name
COPYING
-o
-name
ChangeLog
-o
-name
EXCEPTIONS-CLIENT
\
-o
-name
"INSTALL*"
-o
-name
LICENSE
-o
-name
"README*"
\
-o
-name
"INSTALL*"
-o
-name
LICENSE
-o
-name
"README*"
\
-o
-name
"*.dsp"
-o
-name
"*.dsw"
\
-o
-name
"*.vcproj"
-o
-name
"*.sln"
\)
-type
f
-print
\
-o
-name
"*.vcproj"
-o
-name
"*.sln"
\)
-type
f
-print
\
|
while
read
v
|
while
read
v
do
do
...
...
sql/sql_base.cc
View file @
f2719e88
...
@@ -4441,6 +4441,7 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
...
@@ -4441,6 +4441,7 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
table_list
=
table_list
->
next_leaf
,
tablenr
++
)
table_list
=
table_list
->
next_leaf
,
tablenr
++
)
{
{
TABLE
*
table
=
table_list
->
table
;
TABLE
*
table
=
table_list
->
table
;
table
->
pos_in_table_list
=
table_list
;
if
(
first_select_table
&&
if
(
first_select_table
&&
table_list
->
top_table
()
==
first_select_table
)
table_list
->
top_table
()
==
first_select_table
)
{
{
...
@@ -4584,8 +4585,8 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
...
@@ -4584,8 +4585,8 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
name
->
length
(),
1
))
<=
name
->
length
(),
1
))
<=
0
)
0
)
{
{
my_error
(
ER_KEY_
COLUMN_
DOES_NOT_EXITS
,
MYF
(
0
),
name
->
c_ptr
(),
my_error
(
ER_KEY_DOES_NOT_EXITS
,
MYF
(
0
),
name
->
c_ptr
(),
table
->
s
->
table_name
);
table
->
pos_in_table_list
->
alias
);
map
->
set_all
();
map
->
set_all
();
return
1
;
return
1
;
}
}
...
...
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