summaryrefslogtreecommitdiff
path: root/include/mysql.h
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-05-16 18:29:04 +0400
committerunknown <konstantin@mysql.com>2005-05-16 18:29:04 +0400
commit1c1cc00a8ae4e18282fc7a43acc7a2bc027d7992 (patch)
tree8b23eb851e490da3bd74c4cb891111c083cb651f /include/mysql.h
parentb9a4e7d88eabba5b7463da899d1a72a264a84093 (diff)
parent1bb1bc69935a234fcb72088e1065712ac59f475b (diff)
downloadmariadb-git-1c1cc00a8ae4e18282fc7a43acc7a2bc027d7992.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/opt/local/work/mysql-5.0-9643 include/mysql.h: Auto merged libmysql/libmysql.c: Auto merged tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'include/mysql.h')
-rw-r--r--include/mysql.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mysql.h b/include/mysql.h
index bcff8fa8645..b2b2e239758 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -664,6 +664,7 @@ typedef struct st_mysql_stmt
unsigned char **row);
unsigned long stmt_id; /* Id for prepared statement */
unsigned long flags; /* i.e. type of cursor to open */
+ unsigned long prefetch_rows; /* number of rows per one COM_FETCH */
/*
Copied from mysql->server_status after execute/fetch to know
server-side cursor status for this statement.
@@ -702,7 +703,12 @@ enum enum_stmt_attr_type
unsigned long with combination of cursor flags (read only, for update,
etc)
*/
- STMT_ATTR_CURSOR_TYPE
+ STMT_ATTR_CURSOR_TYPE,
+ /*
+ Amount of rows to retrieve from server per one fetch if using cursors.
+ Accepts unsigned long attribute in the range 1 - ulong_max
+ */
+ STMT_ATTR_PREFETCH_ROWS
};