At 00:47 13/8/2003 +0000, Miguel Cardenas wrote:
Hi,


Hello list...

Am developing an application with mysql support and it works fine, but today
changed from 3.23 (deinstalled completely) to 4.0.14 and when recompiling my
program get the following errors:

<cut>
-------------------------------------------------------------------
/* mysql_v.cpp */
#include "mysql_v.h"
...
int MYSQL_V::CreateDatabase (char* database) {
   return mysql_create_db(&sql_handle,database);
}
int MYSQL_V::DropDatabase (char* database) {
   return mysql_drop_db(&sql_handle,database);
}

The above function is deprecated and if you want to use it use the define USE_OLD_FUNCTIONS:

/include/mysql.h

#ifdef USE_OLD_FUNCTIONS
MYSQL *         STDCALL mysql_connect(MYSQL *mysql, const char *host,
                                      const char *user, const char *passwd);
int             STDCALL mysql_create_db(MYSQL *mysql, const char *DB);
int             STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
#define  mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT)
#endif


-- Regards,

For technical support contracts, visit https://order.mysql.com/
Are you MySQL certified?, http://www.mysql.com/certification/

Miguel Angel Solórzano <[EMAIL PROTECTED]>
São Paulo - Brazil

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to