Merge rurik.mysql.com:/home/igor/mysql-5.1
into rurik.mysql.com:/home/igor/dev/mysql-5.1-0
This commit is contained in:
commit
3d6899948b
@ -83,13 +83,13 @@ link_sources:
|
|||||||
for f in $(sql_src) ; do \
|
for f in $(sql_src) ; do \
|
||||||
rm -f $$f; \
|
rm -f $$f; \
|
||||||
@LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
|
@LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
|
||||||
done;
|
done; \
|
||||||
for f in $(strings_src) ; do \
|
for f in $(strings_src) ; do \
|
||||||
rm -f $(srcdir)/$$f; \
|
rm -f $(srcdir)/$$f; \
|
||||||
@LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
|
@LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
|
||||||
done;
|
done; \
|
||||||
-rm -f $(srcdir)/my_user.c;
|
rm -f $(srcdir)/my_user.c; \
|
||||||
@LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c
|
@LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c;
|
||||||
|
|
||||||
|
|
||||||
# Don't update the files from bitkeeper
|
# Don't update the files from bitkeeper
|
||||||
|
0
extra/yassl/include/openssl/generate_prefix_files.pl
Normal file → Executable file
0
extra/yassl/include/openssl/generate_prefix_files.pl
Normal file → Executable file
@ -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 42000: Key 'a' doesn't exist in table 't1'
|
||||||
|
EXPLAIN SELECT * FROM t1 FORCE INDEX (a);
|
||||||
|
ERROR 42000: 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');
|
||||||
|
@ -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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -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 ]
|
||||||
|
@ -343,6 +343,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
|
||||||
|
@ -5343,6 +5343,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)
|
||||||
{
|
{
|
||||||
@ -5488,7 +5489,7 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
|
|||||||
0)
|
0)
|
||||||
{
|
{
|
||||||
my_error(ER_KEY_DOES_NOT_EXITS, MYF(0), name->c_ptr(),
|
my_error(ER_KEY_DOES_NOT_EXITS, MYF(0), name->c_ptr(),
|
||||||
table->alias);
|
table->pos_in_table_list->alias);
|
||||||
map->set_all();
|
map->set_all();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -2020,7 +2020,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
uptime,
|
uptime,
|
||||||
(int) thread_count, (ulong) thd->query_id,
|
(int) thread_count, (ulong) thd->query_id,
|
||||||
current_global_status_var.long_query_count,
|
current_global_status_var.long_query_count,
|
||||||
current_global_status_var.opened_tables, refresh_version, cached_open_tables(),
|
current_global_status_var.opened_tables, refresh_version,
|
||||||
|
cached_open_tables(),
|
||||||
(uptime ? (ulonglong2double(thd->query_id) / (double) uptime) :
|
(uptime ? (ulonglong2double(thd->query_id) / (double) uptime) :
|
||||||
(double) 0));
|
(double) 0));
|
||||||
#ifdef SAFEMALLOC
|
#ifdef SAFEMALLOC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user