mysql-test/suite/vcol/t/vcol_sargable_debug.test
raw| 1 | |
| 2 | --source include/have_sequence.inc |
| 3 | --source include/have_debug.inc |
| 4 | --source include/not_embedded.inc |
| 5 | |
| 6 | create table t1 (a int, vcol1 int as (a+1), index(vcol1)); |
| 7 | insert into t1 (a) select seq from seq_1_to_100; |
| 8 | |
| 9 | SET SESSION debug_dbug="+d,vcol_subst_simulate_oom"; |
| 10 | --error ER_OUT_OF_RESOURCES |
| 11 | explain select * from t1 where a+1=2; |
| 12 | SET @saved_dbug = @@SESSION.debug_dbug; |
| 13 | |
| 14 | SET debug_dbug= @saved_dbug; |
| 15 | drop table t1; |