Oracle 5.0 Reference Manual page 2177

Table of Contents

Advertisement

MYSQL_FIELD_OFFSET mysql_field_tell(MYSQL_RES *result)
Description
Returns the position of the field cursor used for the last mysql_fetch_field(). This value can be
used as an argument to mysql_field_seek().
Return Values
The current offset of the field cursor.
Errors
None.
20.6.6.25.
mysql_free_result()
void mysql_free_result(MYSQL_RES *result)
Description
Frees the memory allocated for a result set by mysql_store_result(), mysql_use_result(),
mysql_list_dbs(), and so forth. When you are done with a result set, you must free the memory it
uses by calling mysql_free_result().
Do not attempt to access a result set after freeing it.
Return Values
None.
Errors
None.
20.6.6.26.
mysql_get_character_set_info()
void mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *cs)
Description
This function provides information about the default client character set. The default character set may
be changed with the
This function was added in MySQL 5.0.10.
Example
This example shows the fields that are available in the
if (!mysql_set_character_set(&mysql, "utf8"))
{
MY_CHARSET_INFO cs;
mysql_get_character_set_info(&mysql, &cs);
printf("character set information:\n");
printf("character set+collation number: %d\n", cs.number);
printf("character set name: %s\n", cs.name);
printf("collation name: %s\n", cs.csname);
printf("comment: %s\n", cs.comment);
printf("directory: %s\n", cs.dir);
printf("multi byte character min. length: %d\n", cs.mbminlen);
printf("multi byte character max. length: %d\n", cs.mbmaxlen);
C API Function Descriptions
mysql_set_character_set()
function.
MY_CHARSET_INFO
2157
structure:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents