| 3023 | |
| 3024 | |
| 3025 | int sp_cursor::open_from_dynamic_string(THD *thd, |
| 3026 | uint set_placeholder_instr_first, |
| 3027 | uint set_placeholder_instr_count) |
| 3028 | { |
| 3029 | DBUG_ENTER("sp_cursor::open_from_dynamic_string"); |
| 3030 | if (!mysql_sql_stmt_execute_immediate(thd, true, |
| 3031 | &result, &server_side_cursor, |
| 3032 | InstrSlice( |
| 3033 | set_placeholder_instr_first, |
| 3034 | set_placeholder_instr_count))) |
| 3035 | { |
| 3036 | thd->open_cursors_counter_increment(); |
| 3037 | DBUG_RETURN(0); |
| 3038 | } |
| 3039 | DBUG_RETURN(-1); |
| 3040 | } |
| 3041 | |
| 3042 | |
| 3043 | bool |
no test coverage detected