mirror of
https://github.com/MariaDB/server.git
synced 2026-03-02 14:38:41 +01:00
modified: storage/connect/array.cpp modified: storage/connect/array.h modified: storage/connect/blkfil.cpp modified: storage/connect/blkfil.h modified: storage/connect/block.h modified: storage/connect/colblk.cpp modified: storage/connect/colblk.h modified: storage/connect/csort.h modified: storage/connect/filamvct.cpp modified: storage/connect/filter.cpp modified: storage/connect/filter.h modified: storage/connect/global.h modified: storage/connect/json.h modified: storage/connect/plgdbsem.h modified: storage/connect/plgdbutl.cpp modified: storage/connect/tabcol.cpp modified: storage/connect/tabcol.h modified: storage/connect/tabdos.cpp modified: storage/connect/tabdos.h modified: storage/connect/tabjson.cpp modified: storage/connect/table.cpp modified: storage/connect/tabodbc.cpp modified: storage/connect/tabodbc.h modified: storage/connect/tabsys.h modified: storage/connect/tabxml.h modified: storage/connect/value.cpp modified: storage/connect/value.h modified: storage/connect/xindex.cpp modified: storage/connect/xindex.h modified: storage/connect/xobject.cpp modified: storage/connect/xobject.h modified: storage/connect/xtable.h Set values as nullable when retrieving catalog info modified: storage/connect/jdbconn.cpp modified: storage/connect/mysql-test/connect/r/odbc_oracle.result modified: storage/connect/odbconn.cpp Change format of Jpath modified: storage/connect/json.cpp modified: storage/connect/jsonudf.cpp modified: storage/connect/mysql-test/connect/r/json.result modified: storage/connect/mysql-test/connect/r/json_udf.result modified: storage/connect/mysql-test/connect/r/json_udf_bin.result modified: storage/connect/mysql-test/connect/r/zip.result modified: storage/connect/mysql-test/connect/t/json.test modified: storage/connect/mysql-test/connect/t/json_udf.test modified: storage/connect/mysql-test/connect/t/json_udf_bin.test modified: storage/connect/mysql-test/connect/t/zip.test modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/tabmgo.cpp Change null representation from ??? to <null> modified: storage/connect/json.cpp Change the name of UDF that are equal to a native JSON function name modified: storage/connect/jsonudf.cpp modified: storage/connect/jsonudf.h modified: storage/connect/mysql-test/connect/t/json_udf.inc modified: storage/connect/mysql-test/connect/t/json_udf2.inc Fix bug in making JSON project info modified: storage/connect/mongofam.cpp Fix COMPUTE when one argument is null modified: storage/connect/value.cpp Value is null only when nullable modified: storage/connect/value.h
136 lines
2.7 KiB
Text
136 lines
2.7 KiB
Text
#
|
|
# Testing multiple 1
|
|
#
|
|
CREATE TABLE t1 (
|
|
Chiffre int(3) NOT NULL,
|
|
Lettre char(16) NOT NULL)
|
|
ENGINE=CONNECT TABLE_TYPE=CSV FILE_NAME='num1.csv' LRECL=20 HEADER=1;
|
|
INSERT INTO t1 VALUES(1,'One'),(2,'Two'),(3,'Three'),(4,'Four'),(5,'Five'),(6,'Six');
|
|
SELECT * FROM t1;
|
|
Chiffre Lettre
|
|
1 One
|
|
2 Two
|
|
3 Three
|
|
4 Four
|
|
5 Five
|
|
6 Six
|
|
CREATE TABLE t2 (
|
|
Chiffre int(3) NOT NULL,
|
|
Lettre char(16) NOT NULL)
|
|
ENGINE=CONNECT TABLE_TYPE='CSV' FILE_NAME='subdir/num2.csv' LRECL=20 HEADER=1;
|
|
INSERT INTO t2 VALUES(7,'Seven'),(8,'Eight'),(9,'Nine'),(10,'Ten'),(11,'Eleven'),(12,'Twelve');
|
|
SELECT * FROM t2;
|
|
Chiffre Lettre
|
|
7 Seven
|
|
8 Eight
|
|
9 Nine
|
|
10 Ten
|
|
11 Eleven
|
|
12 Twelve
|
|
CREATE TABLE t3 (
|
|
Chiffre int(3) NOT NULL,
|
|
Lettre char(16) NOT NULL)
|
|
ENGINE=CONNECT TABLE_TYPE='CSV' FILE_NAME='num3.csv' LRECL=20 HEADER=1;
|
|
INSERT INTO t3 VALUES(13,'Thirteen'),(14,'Fourteen'),(15,'Fifteen'),(16,'Sixteen'),(17,'Seventeen'),(18,'Eighteen');
|
|
SELECT * FROM t3;
|
|
Chiffre Lettre
|
|
13 Thirteen
|
|
14 Fourteen
|
|
15 Fifteen
|
|
16 Sixteen
|
|
17 Seventeen
|
|
18 Eighteen
|
|
CREATE TABLE t4 (
|
|
Chiffre int(3) NOT NULL,
|
|
Lettre char(16) NOT NULL)
|
|
ENGINE=CONNECT TABLE_TYPE='CSV' FILE_NAME='subdir/num4.csv' LRECL=20 HEADER=1;
|
|
INSERT INTO t4 VALUES(19,'Nineteen'),(20,'Twenty'),(21,'Twenty one'),(22,'Twenty two'),(23,'Tenty three'),(24,'Twenty four');
|
|
SELECT * FROM t4;
|
|
Chiffre Lettre
|
|
19 Nineteen
|
|
20 Twenty
|
|
21 Twenty one
|
|
22 Twenty two
|
|
23 Tenty three
|
|
24 Twenty four
|
|
CREATE TABLE t5 (
|
|
Chiffre int(3) NOT NULL,
|
|
Lettre char(16) NOT NULL)
|
|
ENGINE=CONNECT TABLE_TYPE='CSV' FILE_NAME='num5.csv' LRECL=20 HEADER=1;
|
|
INSERT INTO t5 VALUES(25,'Twenty five'),(26,'Twenty six'),(27,'Twenty seven'),(28,'Twenty eight'),(29,'Tenty eight'),(30,'Thirty');
|
|
SELECT * FROM t5;
|
|
Chiffre Lettre
|
|
25 Twenty five
|
|
26 Twenty six
|
|
27 Twenty seven
|
|
28 Twenty eight
|
|
29 Tenty eight
|
|
30 Thirty
|
|
CREATE TABLE t_all (
|
|
Chiffre int(3) not null,
|
|
Lettre char(16) not null)
|
|
ENGINE=CONNECT TABLE_TYPE=CSV FILE_NAME='num?.csv' HEADER=1 LRECL=20 MULTIPLE=1;
|
|
SELECT * FROM t_all ORDER BY Chiffre;
|
|
Chiffre Lettre
|
|
1 One
|
|
2 Two
|
|
3 Three
|
|
4 Four
|
|
5 Five
|
|
6 Six
|
|
13 Thirteen
|
|
14 Fourteen
|
|
15 Fifteen
|
|
16 Sixteen
|
|
17 Seventeen
|
|
18 Eighteen
|
|
25 Twenty five
|
|
26 Twenty six
|
|
27 Twenty seven
|
|
28 Twenty eight
|
|
29 Tenty eight
|
|
30 Thirty
|
|
#
|
|
# Testing multiple 3
|
|
#
|
|
ALTER TABLE t_all MULTIPLE=3;
|
|
Warnings:
|
|
Warning 1105 This is an outward table, table data were not modified.
|
|
SELECT * FROM t_all ORDER BY Chiffre;
|
|
Chiffre Lettre
|
|
1 One
|
|
2 Two
|
|
3 Three
|
|
4 Four
|
|
5 Five
|
|
6 Six
|
|
7 Seven
|
|
8 Eight
|
|
9 Nine
|
|
10 Ten
|
|
11 Eleven
|
|
12 Twelve
|
|
13 Thirteen
|
|
14 Fourteen
|
|
15 Fifteen
|
|
16 Sixteen
|
|
17 Seventeen
|
|
18 Eighteen
|
|
19 Nineteen
|
|
20 Twenty
|
|
21 Twenty one
|
|
22 Twenty two
|
|
23 Tenty three
|
|
24 Twenty four
|
|
25 Twenty five
|
|
26 Twenty six
|
|
27 Twenty seven
|
|
28 Twenty eight
|
|
29 Tenty eight
|
|
30 Thirty
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|
|
DROP TABLE t5;
|
|
DROP TABLE t_all;
|