You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Removed all internal dependencies from ma_dyncol.
Fixed compiler warnings
This commit is contained in:
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
*/
|
||||
|
||||
#include "my_test.h"
|
||||
#include "ma_common.h"
|
||||
|
||||
static int basic_connect(MYSQL *mysql)
|
||||
{
|
||||
|
@@ -104,7 +104,7 @@ static int mdev_4994(MYSQL *mysql)
|
||||
int rc;
|
||||
|
||||
|
||||
val.type= MYSQL_TYPE_NULL;
|
||||
val.type= DYN_COL_NULL;
|
||||
|
||||
mariadb_dyncol_init(&dyncol);
|
||||
rc= mariadb_dyncol_create_many_num(&dyncol, 1, &key, &val, 0);
|
||||
|
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
#include "my_test.h"
|
||||
#include "ma_common.h"
|
||||
|
||||
/*
|
||||
Bug#28075 "COM_DEBUG crashes mysqld"
|
||||
|
@@ -113,7 +113,7 @@ static int test_bind_date_conv(MYSQL *mysql, uint row_count)
|
||||
my_bind[0].buffer_type= MYSQL_TYPE_TIMESTAMP;
|
||||
my_bind[1].buffer_type= MYSQL_TYPE_TIME;
|
||||
my_bind[2].buffer_type= MYSQL_TYPE_DATETIME;
|
||||
my_bind[3].buffer_type= MYSQL_TYPE_DATE;
|
||||
my_bind[3].buffer_type= MYSQL_TYPE_DATETIME;
|
||||
|
||||
for (i= 0; i < (int) array_elements(my_bind); i++)
|
||||
{
|
||||
@@ -196,7 +196,6 @@ static int test_bind_date_conv(MYSQL *mysql, uint row_count)
|
||||
FAIL_UNLESS(tm[i].year == 0 || tm[i].year == year+count, "wrong value for year");
|
||||
FAIL_UNLESS(tm[i].month == 0 || tm[i].month == month+count, "wrong value for month");
|
||||
FAIL_UNLESS(tm[i].day == 0 || tm[i].day == day+count, "wrong value for day");
|
||||
|
||||
FAIL_UNLESS(tm[i].hour == 0 || tm[i].hour == hour+count, "wrong value for hour");
|
||||
FAIL_UNLESS(tm[i].minute == 0 || tm[i].minute == minute+count, "wrong value for minute");
|
||||
FAIL_UNLESS(tm[i].second == 0 || tm[i].second == sec+count, "wrong value for second");
|
||||
|
@@ -141,8 +141,8 @@ static int test_multi_ssl_connections(MYSQL *unused)
|
||||
|
||||
mysql_close(my);
|
||||
|
||||
FAIL_IF(new_connections - old_connections < 50, "new_connections should be at least old_connections + 50");
|
||||
diag("%d SSL connections processed", new_connections - old_connections);
|
||||
FAIL_IF(new_connections - old_connections < 50, "new_connections should be at least old_connections + 50");
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ int thread_conc27(void);
|
||||
DWORD WINAPI thread_conc27(void);
|
||||
#endif
|
||||
|
||||
#define THREAD_NUM 1800
|
||||
#define THREAD_NUM 100
|
||||
|
||||
/* run this test as root and increase the number of handles (ulimit -n) */
|
||||
static int test_conc_27(MYSQL *mysql)
|
||||
|
Reference in New Issue
Block a user