| 3673 | |
| 3674 | |
| 3675 | int sp_cursor::open_from_ps(THD *thd, const Lex_ident_sys &ps_name) |
| 3676 | { |
| 3677 | DBUG_ENTER("sp_cursor::open_from_ps"); |
| 3678 | if (check_for_open(thd, true)) |
| 3679 | DBUG_RETURN(-1); |
| 3680 | |
| 3681 | if (mysql_sql_stmt_execute(thd, ps_name, "OPEN", true, |
| 3682 | &result, &server_side_cursor)) |
| 3683 | DBUG_RETURN(-1); |
| 3684 | |
| 3685 | thd->open_cursors_counter_increment(); |
| 3686 | DBUG_RETURN(0); |
| 3687 | } |
| 3688 | |
| 3689 | |
| 3690 | /** |
no test coverage detected