mysql-test/suite/x/include/connection_default_schema.inc
raw| 1 | |
| 2 | echo # Checking if requested schema was selected.; |
| 3 | |
| 4 | if ($expect_error != '') |
| 5 | { |
| 6 | --replace_result $expect_error EXPECTED_ERROR_CODE |
| 7 | --error 1 |
| 8 | } |
| 9 | exec $execute_command |
| 10 | --user=$user |
| 11 | --host=127.0.0.1 |
| 12 | -e "SELECT IF(DATABASE()='$schema','Success','Failure');" |
| 13 | $schema 2>&1; |
| 14 | |
| 15 | --let $expect_error= |
| 16 | --let $user= |
| 17 | --let $schema= |
| 18 | --let $execute_command= |
| 19 | --let $expect_error= |