MCPcopy Create free account
hub / github.com/MariaDB/server / open_from_ps

Method open_from_ps

sql/sql_prepare.cc:3675–3687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3673
3674
3675int 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/**

Callers 1

exec_coreMethod · 0.80

Calls 2

mysql_sql_stmt_executeFunction · 0.85

Tested by

no test coverage detected