MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sql_cursor.h File Reference
#include "sql_class.h"
Include dependency graph for sql_cursor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Server_side_cursor

Functions

bool mysql_open_cursor (THD *thd, select_result *result, Server_side_cursor **res)

Detailed Description

Declarations for implementation of server side cursors. Only read-only non-scrollable cursors are currently implemented.

Definition in file sql_cursor.h.

Function Documentation

bool mysql_open_cursor ( THD *  thd,
select_result *  result,
Server_side_cursor **  pcursor 
)

Attempt to open a materialized cursor.

Parameters
thdthread handle
[in]resultresult class of the caller used as a destination for the rows fetched from the cursor
[out]pcursora pointer to store a pointer to cursor in
Returns
Error status
Return values
false– the query has been successfully executed; in this case pcursor may or may not contain a pointer to an open cursor.
true– an error, 'pcursor' has been left intact.

Definition at line 94 of file sql_cursor.cc.

Here is the call graph for this function: