Debian Codegraph @

mysql-test/suite/x/t/crud_insert_nodoc.test

raw
1 ## Inserting doc into non-doc table
2
3 ## Preamble
4 --source include/xplugin_preamble.inc
5 --source include/xplugin_create_user.inc
6
7 ## Test data
8 CREATE SCHEMA xtest;
9 USE xtest;
10 CREATE TABLE xtable (nodoc JSON);
11
12 ## Test starts here
13 --write_file $MYSQL_TMP_DIR/crud_insert_nodoc.xpl
14
15 -->quiet
16 Mysqlx.Crud.Insert {
17 collection {
18 name: "xtable"
19 schema: "xtest"
20 }
21 data_model: DOCUMENT
22 row {
23 field {
24 type: LITERAL
25 literal {
26 type: V_STRING
27 v_string {
28 value: '{"a":10, "b":20}'
29 }
30 }
31 }
32 }
33 }
34 -->noquiet
35 -->expecterror 5117
36 -->recvresult
37 EOF
38
39 --exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/crud_insert_nodoc.xpl 2>&1
40
41 ## Cleanup
42 --source ../include/xplugin_cleanup.inc