diff options
author | unknown <konstantin@mysql.com> | 2005-06-04 12:37:10 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-06-04 12:37:10 +0400 |
commit | 8b5ac76d6b31d4bd0bb79d69fed2c06ff2f519fe (patch) | |
tree | f009c136aeeaad25d7a227f6fcec792e3c6eced7 /libmysql | |
parent | c72c3e4ca4119b5f257c62754040505a436f7bc0 (diff) | |
download | mariadb-git-8b5ac76d6b31d4bd0bb79d69fed2c06ff2f519fe.tar.gz |
Add missing STMT_ATTR_PREFETCH_ROWS to mysql_stmt_attr_get
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index c87728ab783..d294921aad2 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2809,11 +2809,14 @@ my_bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt, { switch (attr_type) { case STMT_ATTR_UPDATE_MAX_LENGTH: - *(unsigned long *) value= stmt->update_max_length; + *(ulong*) value= stmt->update_max_length; break; case STMT_ATTR_CURSOR_TYPE: - *(unsigned long *) value= stmt->flags; + *(ulong*) value= stmt->flags; break; + case STMT_ATTR_PREFETCH_ROWS: + *(ulong*) value= stmt->prefetch_rows; + break; default: return TRUE; } |