← Back
Editing: crud_insert_nodoc.test
## Inserting doc into non-doc table ## Preamble --source ../include/xplugin_preamble.inc ## Test data DROP SCHEMA IF EXISTS xtest; CREATE SCHEMA xtest; USE xtest; CREATE TABLE xtable (nodoc JSON); ## Test starts here --write_file $MYSQL_TMP_DIR/crud_insert_nodoc.tmp -->quiet Mysqlx.Crud.Insert { collection { name: "xtable" schema: "xtest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: '{"a":10, "b":20}' } } } } } -->noquiet -->expecterror 5117 -->recvresult EOF --exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/crud_insert_nodoc.tmp 2>&1 --remove_file $MYSQL_TMP_DIR/crud_insert_nodoc.tmp ## Postamble DROP SCHEMA IF EXISTS xtest; UNINSTALL PLUGIN mysqlx;
Save File
Cancel