mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
This commit is contained in:
commit
cde0c36962
26 changed files with 120 additions and 33 deletions
|
@ -71,24 +71,6 @@ show full columns from t1;
|
|||
show index from t1;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Test of some show commands
|
||||
#
|
||||
|
||||
create table t1 (a int not null primary key, b int not null,c int not null, key(b,c));
|
||||
insert into t1 values (1,2,2),(2,2,3),(3,2,4),(4,2,4);
|
||||
create table t2 type=isam select * from t1;
|
||||
optimize table t1;
|
||||
check table t1,t2;
|
||||
repair table t1,t2;
|
||||
check table t2,t1;
|
||||
lock tables t1 write;
|
||||
check table t2,t1;
|
||||
show columns from t1;
|
||||
show full columns from t1;
|
||||
show index from t1;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# test of table with huge number of packed fields
|
||||
#
|
||||
|
|
|
@ -6,8 +6,8 @@ connect (con2,localhost,root,,);
|
|||
connection con1;
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
create table t1(a int) type=innodb;
|
||||
--enable_warnings
|
||||
lock tables t1 write;
|
||||
insert into t1 values(10);
|
||||
disconnect con1;
|
||||
|
|
|
@ -892,9 +892,11 @@ DROP TABLE t1, t2;
|
|||
#
|
||||
# UNION unlocking test
|
||||
#
|
||||
--disable_warnings
|
||||
create table t1 (a int) type=innodb;
|
||||
create table t2 (a int) type=innodb;
|
||||
create table t3 (a int) type=innodb;
|
||||
--enable_warnings
|
||||
insert into t1 values (1),(2),(3),(4);
|
||||
insert into t2 values (10),(20),(30),(40);
|
||||
insert into t3 values (1),(2),(10),(50);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
v/*
|
||||
/*
|
||||
Modifikoval Petr -B©najdr, snajdr@pvt.net, snajdr@cpress.cz v.0.01
|
||||
ISO LATIN-8852-2
|
||||
Dal-B¹í verze Jan Pazdziora, adelton@fi.muni.cz
|
||||
|
@ -270,6 +270,11 @@ v/*
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -264,6 +264,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -272,6 +272,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -266,6 +266,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -270,6 +270,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -263,6 +263,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -263,6 +263,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -263,6 +263,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -263,6 +263,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -265,6 +265,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Não suficiente espaço no buffer emissor para zlib (provavelmente, o comprimento dos dados descomprimidos está corrupto)",
|
||||
"Z_DATA_ERROR: Dados de entrada está corrupto para zlib",
|
||||
"%d linha(s) foi(foram) cortada(s) por group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Usando engine de armazenamento %s para tabela '%s'",
|
||||
"Combinação ilegal de collations (%s,%s) e (%s,%s) para operação '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -265,6 +265,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -263,6 +263,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -256,6 +256,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -269,6 +269,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -262,6 +262,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -261,6 +261,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d rad(er) kapades av group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Använder handler %s för tabell '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -266,6 +266,11 @@
|
|||
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
|
||||
"Z_DATA_ERROR: Input data was corrupted for zlib",
|
||||
"%d line(s) was(were) cut by group_concat()",
|
||||
"Record count is fewer than the column count at row %ld";
|
||||
"Record count is more than the column count at row %ld";
|
||||
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
|
||||
"Data truncated, out of range for column '%s' at row %ld";
|
||||
"Data truncated for column '%s' at row %ld"
|
||||
"Using storage engine %s for table '%s'",
|
||||
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
|
||||
"Can't drop one or more of the requested users"
|
||||
|
|
|
@ -478,8 +478,7 @@ bool JOIN::test_in_subselect(Item **where)
|
|||
/*
|
||||
global select optimisation.
|
||||
return 0 - success
|
||||
1 - go out
|
||||
-1 - go out with cleaning
|
||||
1 - error
|
||||
error code saved in field 'error'
|
||||
*/
|
||||
int
|
||||
|
@ -516,11 +515,9 @@ JOIN::optimize()
|
|||
conds= optimize_cond(conds,&cond_value);
|
||||
if (thd->net.report_error)
|
||||
{
|
||||
// quick abort
|
||||
delete procedure;
|
||||
error= thd->is_fatal_error ? -1 : 1;
|
||||
error= 1;
|
||||
DBUG_PRINT("error",("Error from optimize_cond"));
|
||||
DBUG_RETURN(error);
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
if (cond_value == Item::COND_FALSE ||
|
||||
|
@ -543,8 +540,7 @@ JOIN::optimize()
|
|||
{
|
||||
if (res > 1)
|
||||
{
|
||||
delete procedure;
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
if (res < 0)
|
||||
{
|
||||
|
@ -1514,7 +1510,7 @@ mysql_select(THD *thd, Item ***rref_pointer_array,
|
|||
conds, og_num, order, group, having, proc_param,
|
||||
select_lex, unit, tables_and_fields_initied))
|
||||
{
|
||||
DBUG_RETURN(-1);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
join->select_options= select_options;
|
||||
|
@ -1529,15 +1525,12 @@ mysql_select(THD *thd, Item ***rref_pointer_array,
|
|||
conds, og_num, order, group, having, proc_param,
|
||||
select_lex, unit, tables_and_fields_initied))
|
||||
{
|
||||
DBUG_RETURN(-1);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
if ((err= join->optimize()))
|
||||
{
|
||||
if (err == -1)
|
||||
DBUG_RETURN(join->error);
|
||||
DBUG_ASSERT(err == 1);
|
||||
goto err; // 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue