Edward Smirnov writes:
 > Hello Sinisa,
 > 
 > Saturday, March 31, 2001, 3:45:27 PM, you wrote:
 > 
 > SM> There is no such function in mysql.h.
 > 
 > Small piece from mysql.h is below:
 > **********************************
 > char * STDCALL mysql_error(MYSQL *mysql);
 > char * STDCALL mysql_info(MYSQL *mysql);
 > unsigned long STDCALL mysql_thread_id(MYSQL *mysql);
 > const char * STDCALL mysql_character_set_name(MYSQL *mysql);
 >                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 > MYSQL * STDCALL mysql_init(MYSQL *mysql);
 > **********************************
 > 
 > Moreover, this function is described in
 > manual_Clients.htm#mysql_character_set_name, Chapter 23.4.5 named
 > mysql_character_set_name.
 > 
 > Check it once more, please!

Well, you are right, I have not read well function name first time.

Try to get latest Win32 client and check if it is there.

It is in libmysql.c, so it should be there. 

If it is not, well, just add it :

const char * STDCALL mysql_character_set_name(MYSQL *mysql)
{
  return mysql->charset->name;
}



Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to