mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
10.0-base merge
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2002, 2012, Oracle and/or its affiliates.
|
||||
Copyright (c) 2008, 2012, Monty Program Ab
|
||||
Copyright (c) 2008, 2013, Monty Program Ab
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -6204,7 +6204,7 @@ static void test_date_dt()
|
||||
static void test_pure_coverage()
|
||||
{
|
||||
MYSQL_STMT *stmt;
|
||||
MYSQL_BIND my_bind[1];
|
||||
MYSQL_BIND my_bind[2];
|
||||
int rc;
|
||||
ulong length;
|
||||
|
||||
@ -8880,7 +8880,7 @@ static void test_parse_error_and_bad_length()
|
||||
DIE_UNLESS(rc);
|
||||
if (!opt_silent)
|
||||
fprintf(stdout, "Got error (as expected): '%s'\n", mysql_error(mysql));
|
||||
rc= mysql_real_query(mysql, "SHOW DATABASES", 100);
|
||||
rc= mysql_real_query(mysql, STRING_WITH_LEN("SHOW DATABASES\0AAAAAAAA"));
|
||||
DIE_UNLESS(rc);
|
||||
if (!opt_silent)
|
||||
fprintf(stdout, "Got error (as expected): '%s'\n", mysql_error(mysql));
|
||||
@ -8891,7 +8891,7 @@ static void test_parse_error_and_bad_length()
|
||||
fprintf(stdout, "Got error (as expected): '%s'\n", mysql_error(mysql));
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
DIE_UNLESS(stmt);
|
||||
rc= mysql_stmt_prepare(stmt, "SHOW DATABASES", 100);
|
||||
rc= mysql_stmt_prepare(stmt, STRING_WITH_LEN("SHOW DATABASES\0AAAAAAA"));
|
||||
DIE_UNLESS(rc != 0);
|
||||
if (!opt_silent)
|
||||
fprintf(stdout, "Got error (as expected): '%s'\n", mysql_stmt_error(stmt));
|
||||
@ -9862,11 +9862,11 @@ static void test_bug3035()
|
||||
const uint32 uint32_max= 4294967295U;
|
||||
|
||||
/* it might not work okay everyplace */
|
||||
const longlong int64_max= LL(9223372036854775807);
|
||||
const longlong int64_max= 9223372036854775807LL;
|
||||
const longlong int64_min= -int64_max - 1;
|
||||
|
||||
const ulonglong uint64_min= 0U;
|
||||
const ulonglong uint64_max= ULL(18446744073709551615);
|
||||
const ulonglong uint64_max= 18446744073709551615ULL;
|
||||
|
||||
const char *stmt_text;
|
||||
|
||||
@ -12533,7 +12533,7 @@ static void test_truncation()
|
||||
|
||||
/* double -> longlong, negative fp number to signed integer: no loss */
|
||||
DIE_UNLESS(my_bind++ < bind_array + bind_count);
|
||||
DIE_UNLESS(! *my_bind->error && * (longlong*) my_bind->buffer == LL(-12345678910));
|
||||
DIE_UNLESS(! *my_bind->error && * (longlong*) my_bind->buffer == -12345678910LL);
|
||||
|
||||
/* big numeric string -> number */
|
||||
DIE_UNLESS(my_bind++ < bind_array + bind_count);
|
||||
@ -14535,7 +14535,7 @@ static void test_bug12925()
|
||||
{
|
||||
myheader("test_bug12925");
|
||||
if (opt_getopt_ll_test)
|
||||
DIE_UNLESS(opt_getopt_ll_test == LL(25600*1024*1024));
|
||||
DIE_UNLESS(opt_getopt_ll_test == 25600LL*1024*1024);
|
||||
}
|
||||
|
||||
|
||||
@ -16926,7 +16926,8 @@ static void test_bug31669()
|
||||
rc= mysql_change_user(conn, "", "", "");
|
||||
DIE_UNLESS(rc);
|
||||
|
||||
memset(buff, 'a', sizeof(buff));
|
||||
memset(buff, 'a', sizeof(buff) - 1);
|
||||
buff[sizeof(buff) - 1]= 0;
|
||||
|
||||
mysql_close(conn);
|
||||
conn= client_connect(0, MYSQL_PROTOCOL_TCP, 0);
|
||||
|
Reference in New Issue
Block a user