Prepared statement cursors problem.

2008-07-29 Thread Carlos Savoretti
Hi all: I need to set a cursor for doing a SELECT (using the C API) According the documentation I did in order to setup the cursor. --- const unsigned long cursor_type = CURSOR_TYPE_READ_ONLY; if (mysql_stmt_attr_set (mysql_stmt, STMT_ATTR_CURSOR_TYPE, (void *) &cursor_type)) { g_

Prepared statement cursors problem.

2008-07-29 Thread Carlos Savoretti
Hi all: I need to set a cursor for doing a SELECT (using the C API) According the documentation I did in order to setup the cursor. --- const unsigned long cursor_type = CURSOR_TYPE_READ_ONLY; if (mysql_stmt_attr_set (mysql_stmt, STMT_ATTR_CURSOR_TYPE, (void *) &cursor_type)) { g_