Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/x/r/find_table_find_rows_proj.result |
install plugin mysqlx soname "mysqlx.so"; call mtr.add_suppression("Plugin mysqlx reported: .Failed at SSL configuration: .SSL context is not usable without certificate and private key.."); call mtr.add_suppression("Plugin mysqlx reported: .SSL_CTX_load_verify_locations failed."); RUN drop schema if exists xtest 0 rows affected RUN create schema xtest default charset 'utf8mb4' 1 rows affected RUN use xtest 0 rows affected RUN create table mycoll (doc JSON, _id VARBINARY(16) GENERATED ALWAYS AS (json_unquote(json_extract(doc, '$._id'))) stored PRIMARY KEY) 0 rows affected RUN insert into mycoll (doc) values ('{"_id": "1", "name": "Joe1"}') 1 rows affected RUN insert into mycoll (doc) values ('{"_id": "2", "name": "Joe2", "last_name": "Smith"}') 1 rows affected RUN insert into mycoll (doc) values ('{"_id": "3", "name": "Joe2", "last_name": "Shmo"}') 1 rows affected RUN insert into mycoll (doc) values ('{"_id": "4", "name": "小島", "last_name": "Bla"}') 1 rows affected RUN create table funkycoll (doc JSON, _id VARBINARY(16) GENERATED ALWAYS AS (json_unquote(json_extract(doc, '$._id'))) stored PRIMARY KEY) 0 rows affected RUN insert into funkycoll (doc) values ('{"_id": "1", "I love \\\"\'quotes\'\\\"\\n": "I love \\\"\'quotes\'\\\"\\n"}') 1 rows affected RUN insert into funkycoll (doc) values ('{"_id": "2", "I love \\\"\'quotes\'\\\"\\n": "\\\",$.array[2]\\\\\\\""}') 1 rows affected RUN insert into funkycoll (doc) values ('{"_id": "3", "\\\",$.array[2]\\\\\\\"": "I love \\\"\'quotes\'\\\"\\n"}') 1 rows affected RUN insert into funkycoll (doc) values ('{"_id": "4", "\\\",$.array[2]\\\\\\\"": "\\\",$.array[2]\\\\\\\""}') 1 rows affected RUN create table fancycoll (doc JSON, _id VARBINARY(32) NOT NULL KEY) 0 rows affected RUN insert into fancycoll (doc, _id) values ('\n{\n \"_id\": \"X999_Y999\",\n \"from\": {\n \"name\": \"Tom Brady\", \"id\": \"X12\"\n },\n \"message\": \"Looking forward to 2010!\",\n \"actions\": [\n {\n \"name\": \"Comment\",\n \"link\": \"http://www.facebook.com/X999/posts/Y999\"\n },\n {\n \"name\": \"Like\",\n \"link\": \"http://www.facebook.com/X999/posts/Y999\"\n }\n ],\n \"type\": \"status\",\n \"created_time\": \"2010-08-02T21:27:44+0000\",\n \"updated_time\": \"2010-08-02T21:27:44+0000\"\n }\n', json_unquote(json_extract(doc, '$._id'))) 1 rows affected RUN insert into fancycoll (doc, _id) values ('\n{\n \"_id\": \"X999_Y998\",\n \"from\": {\n \"name\": \"Dom Crady\", \"id\": \"A12\"\n },\n \"message\": \"Looking forward to 2034!\",\n \"actions\": [\n {\n \"name\": \"Comment\",\n \"link\": \"http://www.facebook.com/X999/posts/Y222\"\n },\n {\n \"name\": \"Like\",\n \"link\": \"http://www.facebook.com/X999/posts/Y222\"\n }\n ],\n \"type\": \"status\",\n \"created_time\": \"2011-08-02T21:27:44+0000\",\n \"updated_time\": \"2011-08-02T21:27:44+0000\"\n }\n', json_unquote(json_extract(doc, '$._id'))) 1 rows affected RUN CREATE TABLE `city` ( `ID` int(11) NOT NULL auto_increment, `Name` char(35) NOT NULL default '', `CountryCode` char(3) NOT NULL default '', `District` char(20) NOT NULL default '', `Population` int(11) NOT NULL default '0', PRIMARY KEY (`ID`) ) 0 rows affected RUN INSERT INTO `city` VALUES (1,'Kabul','AFG','Kabol',1780000) 1 rows affected last insert id: 1 RUN INSERT INTO `city` VALUES (2,'Qandahar','AFG','Qandahar',237500) 1 rows affected last insert id: 2 RUN INSERT INTO `city` VALUES (3,'Herat','AFG','Herat',186800) 1 rows affected last insert id: 3 RUN INSERT INTO `city` VALUES (4,'Mazar-e-Sharif','AFG','Balkh',127800) 1 rows affected last insert id: 4 RUN INSERT INTO `city` VALUES (5,'Amsterdam','NLD','Noord-Holland',731200) 1 rows affected last insert id: 5 RUN INSERT INTO `city` VALUES (6,'Rotterdam','NLD','Zuid-Holland',593321) 1 rows affected last insert id: 6 RUN INSERT INTO `city` VALUES (7,'Haag','NLD','Zuid-Holland',440900) 1 rows affected last insert id: 7 RUN INSERT INTO `city` VALUES (8,'Utrecht','NLD','Utrecht',234323) 1 rows affected last insert id: 8 RUN INSERT INTO `city` VALUES (9,'Eindhoven','NLD','Noord-Brabant',201843) 1 rows affected last insert id: 9 RUN INSERT INTO `city` VALUES (10,'Tilburg','NLD','Noord-Brabant',193238) 1 rows affected last insert id: 10 RUN INSERT INTO `city` VALUES (11,'Groningen','NLD','Groningen',172701) 1 rows affected last insert id: 11 RUN INSERT INTO `city` VALUES (12,'Breda','NLD','Noord-Brabant',160398) 1 rows affected last insert id: 12 RUN INSERT INTO `city` VALUES (13,'Apeldoorn','NLD','Gelderland',153491) 1 rows affected last insert id: 13 RUN INSERT INTO `city` VALUES (14,'Nijmegen','NLD','Gelderland',152463) 1 rows affected last insert id: 14 RUN INSERT INTO `city` VALUES (15,'Enschede','NLD','Overijssel',149544) 1 rows affected last insert id: 15 RUN INSERT INTO `city` VALUES (16,'Haarlem','NLD','Noord-Holland',148772) 1 rows affected last insert id: 16 send Mysqlx.Crud.Find { collection { name: "city" schema: "xtest" } data_model: TABLE projection { source { type: IDENT identifier { name: "Name" } } } projection { source { type: IDENT identifier { name: "Population" } } alias: "Pop" } criteria { type: OPERATOR operator { name: "<" param { type: IDENT identifier { name: "Population" } } param { type: LITERAL literal { type: V_SINT v_signed_int: 150000 } } } } } Mysqlx.Resultset.ColumnMetaData { type: BYTES name: "Name" original_name: "Name" table: "city" original_table: "city" schema: "xtest" catalog: "def" collation: 45 fractional_digits: 0 length: 140 flags: 17 } Mysqlx.Resultset.ColumnMetaData { type: SINT name: "Pop" original_name: "Population" table: "city" original_table: "city" schema: "xtest" catalog: "def" collation: 0 fractional_digits: 0 length: 11 flags: 16 } Mysqlx.Resultset.Row { field: "Mazar-e-Sharif\000" field: "\360\314\017" } Mysqlx.Resultset.Row { field: "Enschede\000" field: "\320\240\022" } Mysqlx.Resultset.Row { field: "Haarlem\000" field: "\310\224\022" } Mysqlx.Resultset.FetchDone { } Mysqlx.Sql.StmtExecuteOk { } RUN drop schema if exists xtest 4 rows affected Mysqlx.Ok { msg: "bye!" } ok uninstall plugin mysqlx;