mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge from 5.0-bugteam.
This commit is contained in:
@ -682,7 +682,7 @@ eval CREATE TABLE federated.t1 (
|
||||
INSERT INTO federated.t1 VALUES (1, " MySQL supports a number of column types in several categories: numeric types, date and time types, and string (character) types. This chapter first gives an overview of these column types, and then provides a more detailed description of the properties of the types in each category, and a summary of the column type storage requirements. The overview is intentionally brief. The more detailed descriptions should be consulted for additional information about particular column types, such as the allowable formats in which you can specify values.");
|
||||
INSERT INTO federated.t1 VALUES (2, "All arithmetic is done using signed BIGINT or DOUBLE values, so you should not use unsigned big integers larger than 9223372036854775807 (63 bits) except with bit functions! If you do that, some of the last digits in the result may be wrong because of rounding errors when converting a BIGINT value to a DOUBLE.");
|
||||
INSERT INTO federated.t1 VALUES (3, " A floating-point number. p represents the precision. It can be from 0 to 24 for a single-precision floating-point number and from 25 to 53 for a double-precision floating-point number. These types are like the FLOAT and DOUBLE types described immediately following. FLOAT(p) has the same range as the corresponding FLOAT and DOUBLE types, but the display size and number of decimals are undefined. ");
|
||||
INSERT INTO federated.t1 VALUES(4, "Die <20>bersetzung einer so umfangreichen technischen Dokumentation wie des MySQL-Referenzhandbuchs ist schon eine besondere Herausforderung. Zumindest f<>r jemanden, der seine Zielsprache ernst nimmt:");
|
||||
INSERT INTO federated.t1 VALUES(4, "Die <20>bersetzung einer so umfangreichen technischen Dokumentation wie des MySQL-Referenzhandbuchs ist schon eine besondere Herausforderung. Zumindest f<>r jemanden, der seine Zielsprache ernst nimmt:");
|
||||
SELECT * FROM federated.t1;
|
||||
|
||||
connection slave;
|
||||
@ -1075,20 +1075,20 @@ SELECT HEX(a) FROM federated.t1;
|
||||
# CREATE TABLE federated.t1 (a char(20)) charset=cp1251;
|
||||
# #
|
||||
# connection master;
|
||||
# INSERT INTO federated.t1 values (_cp1251'<27>-<2D><><EFBFBD>-1');
|
||||
# INSERT INTO federated.t1 values (_cp1251'<27>-<2D><><EFBFBD>-2');
|
||||
# INSERT INTO federated.t1 values (_cp1251'<27>-<2D><><EFBFBD>-1');
|
||||
# INSERT INTO federated.t1 values (_cp1251'<27>-<2D><><EFBFBD>-2');
|
||||
# SELECT * FROM federated.t1;
|
||||
# SET names cp1251;
|
||||
# INSERT INTO federated.t1 values ('<27>-<2D><><EFBFBD>-3');
|
||||
# INSERT INTO federated.t1 values ('<27>-Ũ<>-4');
|
||||
# INSERT INTO federated.t1 values ('<27>-<2D><><EFBFBD>-3');
|
||||
# INSERT INTO federated.t1 values ('<27>-Ũ<>-4');
|
||||
# SELECT * FROM federated.t1;
|
||||
# SELECT hex(a) from federated.t1;
|
||||
# SELECT hex(a) from federated.t1 ORDER BY a desc;
|
||||
# UPDATE federated.t1 SET a='<27>-<2D><><EFBFBD>-1<><31><EFBFBD><EFBFBD><EFBFBD>' WHERE a='<27>-<2D><><EFBFBD>-1';
|
||||
# UPDATE federated.t1 SET a='<27>-<2D><><EFBFBD>-1<><31><EFBFBD><EFBFBD><EFBFBD>' WHERE a='<27>-<2D><><EFBFBD>-1';
|
||||
# SELECT * FROM federated.t1;
|
||||
# DELETE FROM federated.t1 WHERE a='<27>-Ũ<>-4';
|
||||
# DELETE FROM federated.t1 WHERE a='<27>-Ũ<>-4';
|
||||
# SELECT * FROM federated.t1;
|
||||
# DELETE FROM federated.t1 WHERE a>'<27>-';
|
||||
# DELETE FROM federated.t1 WHERE a>'<27>-';
|
||||
# SELECT * FROM federated.t1;
|
||||
# SET names default;
|
||||
# DROP TABLE IF EXISTS federated.t1;
|
||||
@ -1857,15 +1857,30 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INT) ENGINE=federated CONNECTION='mysql://@:://';
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Coverage testing of CREATE SERVER.
|
||||
#
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
drop server 's1';
|
||||
|
||||
--echo End of 5.1 tests
|
||||
source include/federated_cleanup.inc;
|
||||
#
|
||||
# Bug #34779: crash in checksum table on federated tables with blobs
|
||||
# containing nulls
|
||||
#
|
||||
connection slave;
|
||||
CREATE TABLE t1 (a LONGBLOB, b LONGBLOB);
|
||||
INSERT INTO t1 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaa', NULL);
|
||||
connection master;
|
||||
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
||||
eval CREATE TABLE t1
|
||||
(a LONGBLOB, b LONGBLOB) ENGINE=FEDERATED
|
||||
CONNECTION='mysql://root@127.0.0.1:$SLAVE_MYPORT/test/t1';
|
||||
CHECKSUM TABLE t1;
|
||||
connection slave;
|
||||
DROP TABLE t1;
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
|
||||
connection default;
|
||||
|
||||
SET @@GLOBAL.CONCURRENT_INSERT= @OLD_CONCURRENT_INSERT;
|
||||
--echo End of 5.0 tests
|
||||
|
||||
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||
drop server 's1';
|
||||
--echo End of 5.1 tests
|
||||
source include/federated_cleanup.inc;
|
||||
|
@ -942,3 +942,15 @@ SELECT a, MIN(b), MAX(b), AVG(b) FROM t1 GROUP BY a ORDER BY a DESC;
|
||||
SELECT a, MIN(b), MAX(b), AVG(b) FROM t1 GROUP BY a ORDER BY a DESC;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug#38195: Incorrect handling of aggregate functions when loose index scan is
|
||||
# used causes server crash.
|
||||
#
|
||||
create table t1 (a int, b int, primary key (a,b), key `index` (a,b)) engine=MyISAM;
|
||||
insert into t1 (a,b) values (0,0),(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),(0,7),
|
||||
(0,8),(0,9),(0,10),(0,11);
|
||||
insert into t1 (a,b) select a, max(b)+1 from t1 where a = 0 group by a;
|
||||
select * from t1;
|
||||
explain extended select sql_buffer_result a, max(b)+1 from t1 where a = 0 group by a;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user