~mysql/mysql-connector-cpp/trunk

« back to all changes in this revision

Viewing changes to driver/nativeapi/mysql_client_api.h

  • Committer: Hemant Dangi
  • Date: 2015-01-08 10:15:44 UTC
  • Revision ID: hemant.dangi@oracle.com-20150108101544-p9denhoh6mx6wzk4
Bug#18135088: Memory leak if result set of prepared statement used

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
 
2
Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
5
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
160
160
 
161
161
typedef int (STDCALL *ptr2mysql_stmt_next_result)(MYSQL_STMT *);
162
162
 
 
163
typedef bool (STDCALL *ptr2mysql_stmt_free_result)(MYSQL_STMT *);
 
164
 
163
165
typedef void (STDCALL *ptr2mysql_thread_init)();
164
166
 
165
167
typedef void (STDCALL *ptr2mysql_thread_end)();
305
307
 
306
308
        virtual int stmt_next_result(MYSQL_STMT *) = 0;
307
309
 
 
310
        virtual bool stmt_free_result(MYSQL_STMT *) = 0;
 
311
 
308
312
        virtual void thread_end() = 0;
309
313
 
310
314
        virtual void thread_init() = 0;