48 lines
956 B
Plaintext
48 lines
956 B
Plaintext
## generated
|
|
## Rel: Attempt to break identifier quoting
|
|
|
|
--source include/xplugin_preamble.inc
|
|
--source include/xplugin_create_user.inc
|
|
|
|
create schema xtest default charset='utf8mb4';
|
|
|
|
## Test starts here
|
|
--write_file $MYSQL_TMP_DIR/insert_table_escape_identifier.tmp
|
|
## Test data
|
|
-->sql
|
|
use xtest;
|
|
create table ` .'"````\\` (` .'"````\\` int);
|
|
-->endsql
|
|
|
|
Mysqlx.Crud.Insert {
|
|
collection {
|
|
name: " .\'\"``\\\\"
|
|
schema: "xtest"
|
|
}
|
|
data_model: TABLE
|
|
projection {
|
|
name: " .\'\"``\\\\"
|
|
alias: " .\'\"``\\\\"
|
|
}
|
|
row {
|
|
field {
|
|
type: LITERAL
|
|
literal {
|
|
type: V_SINT
|
|
v_signed_int: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
## expect Mysqlx.Sql.StmtExecuteOk
|
|
-->recvresult
|
|
EOF
|
|
|
|
--exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/insert_table_escape_identifier.tmp 2>&1
|
|
|
|
## Cleanup
|
|
drop schema if exists xtest;
|
|
--remove_file $MYSQL_TMP_DIR/insert_table_escape_identifier.tmp
|
|
--source include/xplugin_drop_user.inc
|