| 1 |
## generated |
| 2 |
## Rel: Attempt to break identifier quoting |
| 3 |
|
| 4 |
--source include/xplugin_preamble.inc |
| 5 |
--source include/xplugin_create_user.inc |
| 6 |
|
| 7 |
create schema xtest default charset='utf8mb4'; |
| 8 |
|
| 9 |
## Test starts here |
| 10 |
--write_file $MYSQL_TMP_DIR/insert_table_escape_identifier.xpl |
| 11 |
## Test data |
| 12 |
-->sql |
| 13 |
use xtest; |
| 14 |
create table ` .'"````\\` (` .'"````\\` int); |
| 15 |
-->endsql |
| 16 |
|
| 17 |
Mysqlx.Crud.Insert { |
| 18 |
collection { |
| 19 |
name: " .\'\"``\\\\" |
| 20 |
schema: "xtest" |
| 21 |
} |
| 22 |
data_model: TABLE |
| 23 |
projection { |
| 24 |
name: " .\'\"``\\\\" |
| 25 |
alias: " .\'\"``\\\\" |
| 26 |
} |
| 27 |
row { |
| 28 |
field { |
| 29 |
type: LITERAL |
| 30 |
literal { |
| 31 |
type: V_SINT |
| 32 |
v_signed_int: 1 |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
## expect Mysqlx.Sql.StmtExecuteOk |
| 39 |
-->recvresult |
| 40 |
EOF |
| 41 |
|
| 42 |
--exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/insert_table_escape_identifier.xpl 2>&1 |
| 43 |
|
| 44 |
## Cleanup |
| 45 |
--source ../include/xplugin_cleanup.inc |