diff options
author | unknown <konstantin@mysql.com> | 2004-11-01 19:01:50 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-11-01 19:01:50 +0300 |
commit | 55974b50bf26d8178465c63bfabcdcebdbf56933 (patch) | |
tree | 7dc4010003d21b5adf89e57921bf84d39b230ab4 /libmysql | |
parent | 04ff58d5e4837c28afca0eec91f9fb1b31b9cb02 (diff) | |
download | mariadb-git-55974b50bf26d8178465c63bfabcdcebdbf56933.tar.gz |
Remove support for obsolete 4.1.1 prepared statements C API names:
having approval for it since 4.1.4, I also have some assurance that
very few people actually used this: to enable these calls a user
had to #define HAVE_DEPRECATED_411_API and recompile the client library.
include/mysql.h:
remove defines for obsolete 4.1 prepared statements C API names
libmysql/libmysql.c:
Remove #ifdefed implementation of obsolete mysql_prepare call.
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 9195f0a5bc5..88f46ce19e7 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -1886,22 +1886,6 @@ my_bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt) DBUG_RETURN(0); } -#ifdef HAVE_DEPRECATED_411_API -MYSQL_STMT * STDCALL mysql_prepare(MYSQL *mysql, const char *query, - unsigned long query_length) -{ - MYSQL_STMT *stmt; - DBUG_ENTER("mysql_prepare"); - - stmt= mysql_stmt_init(mysql); - if (stmt && mysql_stmt_prepare(stmt, query, query_length)) - { - mysql_stmt_close(stmt); - DBUG_RETURN(0); - } - DBUG_RETURN(stmt); -} -#endif /* Allocate memory and init prepared statement structure. |