Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/t/ |
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/t/crud_delete_args.test |
## Deleting and placeholders --source ../include/xplugin_preamble.inc ## Test data DROP SCHEMA IF EXISTS xtest; CREATE SCHEMA xtest; CREATE TABLE xtest.xtable (value FLOAT); ## Test starts here --write_file $MYSQL_TMP_DIR/crud_delete_args.tmp -->macro prepare_values -->quiet -->sql TRUNCATE TABLE xtest.xtable; INSERT INTO xtest.xtable VALUES (34.2),(23.1),(56.3),(45.4),(67.5); -->endsql -->noquiet -->endmacro -->macro show_values -->quiet -->sql SELECT * FROM xtest.xtable; -->endsql -->noquiet -->endmacro ##-- criteria - missing arg -->callmacro prepare_values -->quiet Mysqlx.Crud.Delete { collection { name: "xtable" schema: "xtest"} data_model: TABLE criteria { type: OPERATOR operator { name: ">" param { type: IDENT identifier { name: "value" } } param { type: PLACEHOLDER position: 0 } } } } -->noquiet -->expecterror 5154 -->recvresult -->callmacro show_values ##-- criteria - one arg -->callmacro prepare_values -->quiet Mysqlx.Crud.Delete { collection { name: "xtable" schema: "xtest"} data_model: TABLE criteria { type: OPERATOR operator { name: ">" param { type: IDENT identifier { name: "value" } } param { type: PLACEHOLDER position: 0 } } } args { type: V_FLOAT v_float: 51.1 } } -->noquiet -->recvresult -->callmacro show_values ##-- order - missing arg -->callmacro prepare_values -->quiet Mysqlx.Crud.Delete { collection { name: "xtable" schema: "xtest"} data_model: TABLE order { expr { type: PLACEHOLDER position: 0 } direction: DESC } } -->noquiet -->expecterror 5154 -->recvresult -->callmacro show_values ##-- order - one arg -->callmacro prepare_values -->quiet Mysqlx.Crud.Delete { collection { name: "xtable" schema: "xtest"} data_model: TABLE args { type: V_OCTETS v_octets {value:"none"} } order { expr { type: PLACEHOLDER position: 0 } direction: DESC } limit: {row_count: 2} } -->noquiet -->recvresult -->callmacro show_values EOF --exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/crud_delete_args.tmp 2>&1 --remove_file $MYSQL_TMP_DIR/crud_delete_args.tmp ## Postamble DROP SCHEMA IF EXISTS xtest; UNINSTALL PLUGIN mysqlx;