Skip to content

Commit c68c5dc

Browse files
committed
Part for fix of CONC-200:
declare type of my_ulonglong
1 parent b0506f6 commit c68c5dc

File tree

4 files changed

+8
-192
lines changed

4 files changed

+8
-192
lines changed

include/ma_global.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ typedef char *my_string; /* String of characters */
709709
typedef unsigned long size_s; /* Size of strings (In string-funcs) */
710710
typedef int myf; /* Type of MyFlags in my_funcs */
711711
typedef char my_bool; /* Small bool */
712+
typedef unsigned long long my_ulonglong;
712713
#if !defined(bool) && !defined(bool_defined) && (!defined(HAVE_BOOL) || !defined(__cplusplus))
713714
typedef char bool; /* Ordinary boolean values 0 1 */
714715
#endif

include/mysql.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extern "C" {
3737
#if !defined (_global_h) && !defined (MY_GLOBAL_INCLUDED) /* If not standard header */
3838
#include <sys/types.h>
3939
typedef char my_bool;
40+
typedef unsigned long long my_ulonglong;
4041

4142
#if !defined(_WIN32)
4243
#define STDCALL
@@ -467,7 +468,7 @@ void my_set_error(MYSQL *mysql, unsigned int error_nr,
467468
/* Functions to get information from the MYSQL and MYSQL_RES structures */
468469
/* Should definitely be used if one uses shared libraries */
469470

470-
unsigned long long STDCALL mysql_num_rows(MYSQL_RES *res);
471+
my_ulonglong STDCALL mysql_num_rows(MYSQL_RES *res);
471472
unsigned int STDCALL mysql_num_fields(MYSQL_RES *res);
472473
my_bool STDCALL mysql_eof(MYSQL_RES *res);
473474
MYSQL_FIELD *STDCALL mysql_fetch_field_direct(MYSQL_RES *res,
@@ -479,11 +480,11 @@ unsigned int STDCALL mysql_field_tell(MYSQL_RES *res);
479480
unsigned int STDCALL mysql_field_count(MYSQL *mysql);
480481
my_bool STDCALL mysql_more_results(MYSQL *mysql);
481482
int STDCALL mysql_next_result(MYSQL *mysql);
482-
unsigned long long STDCALL mysql_affected_rows(MYSQL *mysql);
483+
my_ulonglong STDCALL mysql_affected_rows(MYSQL *mysql);
483484
my_bool STDCALL mysql_autocommit(MYSQL *mysql, my_bool mode);
484485
my_bool STDCALL mysql_commit(MYSQL *mysql);
485486
my_bool STDCALL mysql_rollback(MYSQL *mysql);
486-
unsigned long long STDCALL mysql_insert_id(MYSQL *mysql);
487+
my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql);
487488
unsigned int STDCALL mysql_errno(MYSQL *mysql);
488489
char * STDCALL mysql_error(MYSQL *mysql);
489490
char * STDCALL mysql_info(MYSQL *mysql);

libmariadb/mariadb_lib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,7 +3213,7 @@ mysql_options4(MYSQL *mysql,enum mysql_option option, const void *arg1, const vo
32133213
****************************************************************************/
32143214

32153215
/* MYSQL_RES */
3216-
unsigned long long STDCALL mysql_num_rows(MYSQL_RES *res)
3216+
my_ulonglong STDCALL mysql_num_rows(MYSQL_RES *res)
32173217
{
32183218
return res->row_count;
32193219
}
@@ -3256,7 +3256,7 @@ unsigned int STDCALL mysql_field_count(MYSQL *mysql)
32563256
return mysql->field_count;
32573257
}
32583258

3259-
unsigned long long STDCALL mysql_affected_rows(MYSQL *mysql)
3259+
my_ulonglong STDCALL mysql_affected_rows(MYSQL *mysql)
32603260
{
32613261
return (mysql)->affected_rows;
32623262
}
@@ -3277,7 +3277,7 @@ my_bool STDCALL mysql_rollback(MYSQL *mysql)
32773277
return((my_bool)mysql_real_query(mysql, "ROLLBACK", sizeof("ROLLBACK")));
32783278
}
32793279

3280-
unsigned long long STDCALL mysql_insert_id(MYSQL *mysql)
3280+
my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql)
32813281
{
32823282
return (mysql)->insert_id;
32833283
}

libmariadb/secure/ma_cipher.h

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)