Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MariaDB and MySQL Packaging Team
mariadb-10.0
Commits
a5fd94b1
Commit
a5fd94b1
authored
Feb 20, 2016
by
Otto Kekäläinen
Browse files
Imported Upstream version 10.0.24
parent
aff5af7c
Changes
307
Hide whitespace changes
Inline
Side-by-side
extra/yassl/include/crypto_wrapper.hpp
View file @
a5fd94b1
...
@@ -378,6 +378,7 @@ public:
...
@@ -378,6 +378,7 @@ public:
uint
get_agreedKeyLength
()
const
;
uint
get_agreedKeyLength
()
const
;
const
byte
*
get_agreedKey
()
const
;
const
byte
*
get_agreedKey
()
const
;
uint
get_publicKeyLength
()
const
;
const
byte
*
get_publicKey
()
const
;
const
byte
*
get_publicKey
()
const
;
void
makeAgreement
(
const
byte
*
,
unsigned
int
);
void
makeAgreement
(
const
byte
*
,
unsigned
int
);
...
...
extra/yassl/include/openssl/ssl.h
View file @
a5fd94b1
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include
"rsa.h"
#include
"rsa.h"
#define YASSL_VERSION "2.3.
8
"
#define YASSL_VERSION "2.3.
9
"
#if defined(__cplusplus)
#if defined(__cplusplus)
...
...
extra/yassl/src/crypto_wrapper.cpp
View file @
a5fd94b1
...
@@ -751,9 +751,10 @@ struct DiffieHellman::DHImpl {
...
@@ -751,9 +751,10 @@ struct DiffieHellman::DHImpl {
byte
*
publicKey_
;
byte
*
publicKey_
;
byte
*
privateKey_
;
byte
*
privateKey_
;
byte
*
agreedKey_
;
byte
*
agreedKey_
;
uint
pubKeyLength_
;
DHImpl
(
TaoCrypt
::
RandomNumberGenerator
&
r
)
:
ranPool_
(
r
),
publicKey_
(
0
),
DHImpl
(
TaoCrypt
::
RandomNumberGenerator
&
r
)
:
ranPool_
(
r
),
publicKey_
(
0
),
privateKey_
(
0
),
agreedKey_
(
0
)
{}
privateKey_
(
0
),
agreedKey_
(
0
)
,
pubKeyLength_
(
0
)
{}
~
DHImpl
()
~
DHImpl
()
{
{
ysArrayDelete
(
agreedKey_
);
ysArrayDelete
(
agreedKey_
);
...
@@ -762,7 +763,7 @@ struct DiffieHellman::DHImpl {
...
@@ -762,7 +763,7 @@ struct DiffieHellman::DHImpl {
}
}
DHImpl
(
const
DHImpl
&
that
)
:
dh_
(
that
.
dh_
),
ranPool_
(
that
.
ranPool_
),
DHImpl
(
const
DHImpl
&
that
)
:
dh_
(
that
.
dh_
),
ranPool_
(
that
.
ranPool_
),
publicKey_
(
0
),
privateKey_
(
0
),
agreedKey_
(
0
)
publicKey_
(
0
),
privateKey_
(
0
),
agreedKey_
(
0
)
,
pubKeyLength_
(
0
)
{
{
uint
length
=
dh_
.
GetByteLength
();
uint
length
=
dh_
.
GetByteLength
();
AllocKeys
(
length
,
length
,
length
);
AllocKeys
(
length
,
length
,
length
);
...
@@ -810,7 +811,7 @@ DiffieHellman::DiffieHellman(const byte* p, unsigned int pSz, const byte* g,
...
@@ -810,7 +811,7 @@ DiffieHellman::DiffieHellman(const byte* p, unsigned int pSz, const byte* g,
using
TaoCrypt
::
Integer
;
using
TaoCrypt
::
Integer
;
pimpl_
->
dh_
.
Initialize
(
Integer
(
p
,
pSz
).
Ref
(),
Integer
(
g
,
gSz
).
Ref
());
pimpl_
->
dh_
.
Initialize
(
Integer
(
p
,
pSz
).
Ref
(),
Integer
(
g
,
gSz
).
Ref
());
pimpl_
->
publicKey_
=
NEW_YS
opaque
[
pubSz
];
pimpl_
->
publicKey_
=
NEW_YS
opaque
[
pimpl_
->
pubKeyLength_
=
pubSz
];
memcpy
(
pimpl_
->
publicKey_
,
pub
,
pubSz
);
memcpy
(
pimpl_
->
publicKey_
,
pub
,
pubSz
);
}
}
...
@@ -869,6 +870,10 @@ const byte* DiffieHellman::get_agreedKey() const
...
@@ -869,6 +870,10 @@ const byte* DiffieHellman::get_agreedKey() const
return
pimpl_
->
agreedKey_
;
return
pimpl_
->
agreedKey_
;
}
}
uint
DiffieHellman
::
get_publicKeyLength
()
const
{
return
pimpl_
->
pubKeyLength_
;
}
const
byte
*
DiffieHellman
::
get_publicKey
()
const
const
byte
*
DiffieHellman
::
get_publicKey
()
const
{
{
...
...
extra/yassl/src/yassl_imp.cpp
View file @
a5fd94b1
...
@@ -109,15 +109,12 @@ void ClientDiffieHellmanPublic::build(SSL& ssl)
...
@@ -109,15 +109,12 @@ void ClientDiffieHellmanPublic::build(SSL& ssl)
uint
keyLength
=
dhClient
.
get_agreedKeyLength
();
// pub and agree same
uint
keyLength
=
dhClient
.
get_agreedKeyLength
();
// pub and agree same
alloc
(
keyLength
,
true
);
alloc
(
keyLength
,
true
);
dhClient
.
makeAgreement
(
dhServer
.
get_publicKey
(),
keyLength
);
dhClient
.
makeAgreement
(
dhServer
.
get_publicKey
(),
dhServer
.
get_publicKeyLength
());
c16toa
(
keyLength
,
Yc_
);
c16toa
(
keyLength
,
Yc_
);
memcpy
(
Yc_
+
KEY_OFFSET
,
dhClient
.
get_publicKey
(),
keyLength
);
memcpy
(
Yc_
+
KEY_OFFSET
,
dhClient
.
get_publicKey
(),
keyLength
);
// because of encoding first byte might be zero, don't use it for preMaster
ssl
.
set_preMaster
(
dhClient
.
get_agreedKey
(),
keyLength
);
if
(
*
dhClient
.
get_agreedKey
()
==
0
)
ssl
.
set_preMaster
(
dhClient
.
get_agreedKey
()
+
1
,
keyLength
-
1
);
else
ssl
.
set_preMaster
(
dhClient
.
get_agreedKey
(),
keyLength
);
}
}
...
@@ -321,11 +318,7 @@ void ClientDiffieHellmanPublic::read(SSL& ssl, input_buffer& input)
...
@@ -321,11 +318,7 @@ void ClientDiffieHellmanPublic::read(SSL& ssl, input_buffer& input)
}
}
dh
.
makeAgreement
(
Yc_
,
keyLength
);
dh
.
makeAgreement
(
Yc_
,
keyLength
);
// because of encoding, first byte might be 0, don't use for preMaster
ssl
.
set_preMaster
(
dh
.
get_agreedKey
(),
dh
.
get_agreedKeyLength
());
if
(
*
dh
.
get_agreedKey
()
==
0
)
ssl
.
set_preMaster
(
dh
.
get_agreedKey
()
+
1
,
dh
.
get_agreedKeyLength
()
-
1
);
else
ssl
.
set_preMaster
(
dh
.
get_agreedKey
(),
dh
.
get_agreedKeyLength
());
ssl
.
makeMasterSecret
();
ssl
.
makeMasterSecret
();
}
}
...
...
extra/yassl/src/yassl_int.cpp
View file @
a5fd94b1
...
@@ -807,6 +807,19 @@ void SSL::set_random(const opaque* random, ConnectionEnd sender)
...
@@ -807,6 +807,19 @@ void SSL::set_random(const opaque* random, ConnectionEnd sender)
// store client pre master secret
// store client pre master secret
void
SSL
::
set_preMaster
(
const
opaque
*
pre
,
uint
sz
)
void
SSL
::
set_preMaster
(
const
opaque
*
pre
,
uint
sz
)
{
{
uint
i
(
0
);
// trim leading zeros
uint
fullSz
(
sz
);
while
(
i
++
<
fullSz
&&
*
pre
==
0
)
{
sz
--
;
pre
++
;
}
if
(
sz
==
0
)
{
SetError
(
bad_input
);
return
;
}
secure_
.
use_connection
().
AllocPreSecret
(
sz
);
secure_
.
use_connection
().
AllocPreSecret
(
sz
);
memcpy
(
secure_
.
use_connection
().
pre_master_secret_
,
pre
,
sz
);
memcpy
(
secure_
.
use_connection
().
pre_master_secret_
,
pre
,
sz
);
}
}
...
@@ -924,6 +937,8 @@ void SSL::order_error()
...
@@ -924,6 +937,8 @@ void SSL::order_error()
// Create and store the master secret see page 32, 6.1
// Create and store the master secret see page 32, 6.1
void
SSL
::
makeMasterSecret
()
void
SSL
::
makeMasterSecret
()
{
{
if
(
GetError
())
return
;
if
(
isTLS
())
if
(
isTLS
())
makeTLSMasterSecret
();
makeTLSMasterSecret
();
else
{
else
{
...
...
include/byte_order_generic_x86_64.h
View file @
a5fd94b1
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
Attention: Please, note, uint3korr reads 4 bytes (not 3)!
Attention: Please, note, uint3korr reads 4 bytes (not 3)!
It means, that you have to provide enough allocated space.
It means, that you have to provide enough allocated space.
*/
*/
#if defined(HAVE_
purify
) && !defined(_WIN32)
#if defined(HAVE_
valgrind
) && !defined(_WIN32)
#define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) +\
#define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[2])) << 16))
(((uint32) ((uchar) (A)[2])) << 16))
...
...
include/my_context.h
View file @
a5fd94b1
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#define MY_CONTEXT_USE_I386_GCC_ASM
#define MY_CONTEXT_USE_I386_GCC_ASM
#elif defined(HAVE_UCONTEXT)
#elif defined(HAVE_UCONTEXT
_H
)
#define MY_CONTEXT_USE_UCONTEXT
#define MY_CONTEXT_USE_UCONTEXT
#else
#else
#define MY_CONTEXT_DISABLE
#define MY_CONTEXT_DISABLE
...
...
include/my_global.h
View file @
a5fd94b1
...
@@ -200,20 +200,6 @@
...
@@ -200,20 +200,6 @@
#define likely(x) __builtin_expect(((x) != 0),1)
#define likely(x) __builtin_expect(((x) != 0),1)
#define unlikely(x) __builtin_expect(((x) != 0),0)
#define unlikely(x) __builtin_expect(((x) != 0),0)
/*
now let's figure out if inline functions are supported
autoconf defines 'inline' to be empty, if not
*/
#define inline_test_1(X) X ## 1
#define inline_test_2(X) inline_test_1(X)
#if inline_test_2(inline) != 1
#define HAVE_INLINE
#else
#error Compiler does not support inline!
#endif
#undef inline_test_2
#undef inline_test_1
/* Fix problem with S_ISLNK() on Linux */
/* Fix problem with S_ISLNK() on Linux */
#if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
#if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
#undef _GNU_SOURCE
#undef _GNU_SOURCE
...
@@ -454,7 +440,7 @@ extern "C" int madvise(void *addr, size_t len, int behav);
...
@@ -454,7 +440,7 @@ extern "C" int madvise(void *addr, size_t len, int behav);
#endif
#endif
#ifndef STDERR_FILENO
#ifndef STDERR_FILENO
#define STDERR_FILENO
2
#define STDERR_FILENO
fileno(stderr)
#endif
#endif
/*
/*
...
@@ -827,6 +813,9 @@ inline unsigned long long my_double2ulonglong(double d)
...
@@ -827,6 +813,9 @@ inline unsigned long long my_double2ulonglong(double d)
#else
#else
#define finite(x) (1.0 / fabs(x) > 0.0)
#define finite(x) (1.0 / fabs(x) > 0.0)
#endif
/* HAVE_FINITE */
#endif
/* HAVE_FINITE */
#elif (__cplusplus >= 201103L)
#include
<cmath>
static
inline
bool
isfinite
(
double
x
)
{
return
std
::
isfinite
(
x
);
}
#endif
/* isfinite */
#endif
/* isfinite */
#ifndef HAVE_ISNAN
#ifndef HAVE_ISNAN
...
...
include/probes_mysql_nodtrace.h
→
include/probes_mysql_nodtrace.h
.in
View file @
a5fd94b1
File moved
include/violite.h
View file @
a5fd94b1
...
@@ -146,6 +146,10 @@ typedef my_socket YASSL_SOCKET_T;
...
@@ -146,6 +146,10 @@ typedef my_socket YASSL_SOCKET_T;
#include
<openssl/ssl.h>
#include
<openssl/ssl.h>
#include
<openssl/err.h>
#include
<openssl/err.h>
#ifdef HAVE_ERR_remove_thread_state
#define ERR_remove_state(X) ERR_remove_thread_state(NULL)
#endif
enum
enum_ssl_init_error
enum
enum_ssl_init_error
{
{
SSL_INITERR_NOERROR
=
0
,
SSL_INITERR_CERT
,
SSL_INITERR_KEY
,
SSL_INITERR_NOERROR
=
0
,
SSL_INITERR_CERT
,
SSL_INITERR_KEY
,
...
@@ -204,7 +208,7 @@ void vio_end(void);
...
@@ -204,7 +208,7 @@ void vio_end(void);
/* shutdown(2) flags */
/* shutdown(2) flags */
#ifndef SHUT_RD
#ifndef SHUT_RD
#define SHUT_RD SD_
BOTH
#define SHUT_RD SD_
RECEIVE
#endif
#endif
/*
/*
...
...
include/welcome_copyright_notice.h
View file @
a5fd94b1
/* Copyright (c) 2011, 201
5
, Oracle and/or its affiliates.
/* Copyright (c) 2011, 201
6
, Oracle and/or its affiliates.
Copyright (c) 2011, 201
5
, MariaDB
Copyright (c) 2011, 201
6
, MariaDB
This program is free software; you can redistribute it and/or modify
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
it under the terms of the GNU General Public License as published by
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#ifndef _welcome_copyright_notice_h_
#ifndef _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
#define COPYRIGHT_NOTICE_CURRENT_YEAR "201
5
"
#define COPYRIGHT_NOTICE_CURRENT_YEAR "201
6
"
/*
/*
This define specifies copyright notice which is displayed by every MySQL
This define specifies copyright notice which is displayed by every MySQL
...
...
man/mysqlcheck.1
View file @
a5fd94b1
'\" t
'\" t
.\"
.\"
.TH "\FBMYSQLCHECK\FR" "1" "
04/08
/2015" "MariaDB 10\&.0" "MariaDB Database System"
.TH "\FBMYSQLCHECK\FR" "1" "
27/12
/2015" "MariaDB 10\&.0" "MariaDB Database System"
.\" -----------------------------------------------------------------
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" -----------------------------------------------------------------
...
@@ -677,6 +677,22 @@ Specifying a password on the command line should be considered insecure\&. You c
...
@@ -677,6 +677,22 @@ Specifying a password on the command line should be considered insecure\&. You c
.sp -1
.sp -1
.IP \(bu 2.3
.IP \(bu 2.3
.\}
.\}
.\" mysqlcheck: persisent option
.\" persistent option: mysql
\fB\-\-persistent\fR,
\fB\-Z\fR
.sp
Used with ANALYZE TABLE to append the option PERSISENT FOR ALL.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
.\" mysqlcheck: pipe option
.\" mysqlcheck: pipe option
.\" pipe option: mysql
.\" pipe option: mysql
\fB\-\-pipe\fR,
\fB\-\-pipe\fR,
...
...
mysql-test/extra/rpl_tests/rpl_flsh_tbls.test
View file @
a5fd94b1
...
@@ -45,7 +45,13 @@ drop table t1;
...
@@ -45,7 +45,13 @@ drop table t1;
connection
slave
;
connection
slave
;
flush
tables
with
read
lock
;
flush
tables
with
read
lock
;
start
slave
;
start
slave
;
source
include
/
wait_for_slave_to_start
.
inc
;
# The IO thread will not be able to read the GTID because of flush tables
let
$slave_param
=
Slave_IO_Running
;
let
$slave_param_value
=
Preparing
;
source
include
/
wait_for_slave_param
.
inc
;
--
source
include
/
wait_for_slave_sql_to_start
.
inc
--
error
1192
--
error
1192
stop
slave
;
stop
slave
;
...
...
mysql-test/lib/My/SafeProcess/safe_process_win.cc
View file @
a5fd94b1
...
@@ -357,14 +357,14 @@ int main(int argc, const char** argv )
...
@@ -357,14 +357,14 @@ int main(int argc, const char** argv )
CloseHandle
(
job_handle
);
CloseHandle
(
job_handle
);
message
(
"Job terminated and closed"
);
message
(
"Job terminated and closed"
);
if
(
!
jobobject_assigned
)
{
GenerateConsoleCtrlEvent
(
CTRL_BREAK_EVENT
,
process_info
.
dwProcessId
);
TerminateProcess
(
process_info
.
hProcess
,
202
);
}
if
(
wait_res
!=
WAIT_OBJECT_0
+
CHILD
)
if
(
wait_res
!=
WAIT_OBJECT_0
+
CHILD
)
{
{
if
(
!
jobobject_assigned
)
{
TerminateProcess
(
process_info
.
hProcess
,
202
);
}
/* The child has not yet returned, wait for it */
/* The child has not yet returned, wait for it */
message
(
"waiting for child to exit"
);
message
(
"waiting for child to exit"
);
if
((
wait_res
=
WaitForSingleObject
(
wait_handles
[
CHILD
],
INFINITE
))
if
((
wait_res
=
WaitForSingleObject
(
wait_handles
[
CHILD
],
INFINITE
))
...
...
mysql-test/lib/mtr_cases.pm
View file @
a5fd94b1
...
@@ -498,6 +498,7 @@ sub process_suite {
...
@@ -498,6 +498,7 @@ sub process_suite {
# disabled.def
# disabled.def
parse_disabled
(
$suite
->
{
dir
}
.
'
/disabled.def
',
$suitename
);
parse_disabled
(
$suite
->
{
dir
}
.
'
/disabled.def
',
$suitename
);
parse_disabled
(
$suite
->
{
dir
}
.
'
/t/disabled.def
',
$suitename
);
# combinations
# combinations
if
(
@
::
opt_combinations
)
if
(
@
::
opt_combinations
)
...
...
mysql-test/r/alter_table_online.result
View file @
a5fd94b1
...
@@ -2,15 +2,9 @@ drop table if exists t1,t2,t3;
...
@@ -2,15 +2,9 @@ drop table if exists t1,t2,t3;
create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
insert into t1 (a) values (1),(2),(3);
alter online table t1 modify b int default 5;
alter online table t1 modify b int default 5;
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 change b new_name int;
alter online table t1 change b new_name int;
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 modify e enum('a','b','c');
alter online table t1 modify e enum('a','b','c');
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 comment "new comment";
alter online table t1 comment "new comment";
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 rename to t2;
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 algorithm=INPLACE, lock=NONE;
alter online table t1 algorithm=INPLACE, lock=NONE;
alter online table t1;
alter online table t1;
alter table t1 algorithm=INPLACE;
alter table t1 algorithm=INPLACE;
...
@@ -40,10 +34,13 @@ alter online table t1 add f int;
...
@@ -40,10 +34,13 @@ alter online table t1 add f int;
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED.
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED.
alter online table t1 engine=memory;
alter online table t1 engine=memory;
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED.
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED.
alter online table t1 rename to t2;
ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter table t1 engine=innodb;
alter table t1 engine=innodb;
alter table t1 add index (b);
alter table t1 add index (b);
alter online table t1 add index c (c);
alter online table t1 add index c (c);
alter online table t1 drop index b;
alter online table t1 drop index b;
alter online table t1 comment "new comment";
drop table t1;
drop table t1;
create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
insert into t1 (a) values (1),(2),(3);
...
...
mysql-test/r/contributors.result
View file @
a5fd94b1
SHOW CONTRIBUTORS;
SHOW CONTRIBUTORS;
Name Location Comment
Name Location Comment
Booking.com http://www.booking.com Founding member of the MariaDB foundation
Booking.com http://www.booking.com Founding member of the MariaDB Foundation
SkySQL Ab http://www.skysql.com Founding member of the MariaDB foundation
MariaDB Corporation https://mariadb.com Founding member of the MariaDB Foundation
Auttomatic http://automattic.com Member of the MariaDB foundation
Auttomattic http://automattic.com Member of the MariaDB Foundation
Parallels http://www.parallels.com/products/plesk Founding member of the MariaDB foundation
Parallels http://www.parallels.com/products/plesk Founding member of the MariaDB Foundation
Verkkokauppa.com Finland Sponsor of the MariaDB foundation
Acronis http://www.acronis.com Member of the MariaDB Foundation
Webyog Bangalor Sponsor of the MariaDB foundation
Verkkokauppa.com Finland Sponsor of the MariaDB Foundation
Percona USA Sponsor of the MariaDB foundation
Webyog Bangalore Sponsor of the MariaDB Foundation
Jelastic.com Russia Sponsor of the MariaDB foundation
Wikimedia Foundation USA Sponsor of the MariaDB Foundation
Planetta.net Finland Sponsor of the MariaDB foundation
Open query Australia Sponsor of the MariaDB foundation
Google USA Sponsoring parallel replication and GTID
Google USA Sponsoring parallel replication and GTID
Facebook USA Sponsoring non-blocking API, LIMIT ROWS EXAMINED etc
Facebook USA Sponsoring non-blocking API, LIMIT ROWS EXAMINED etc
Ronald Bradford Brisbane, Australia EFF contribution for UC2006 Auction
Ronald Bradford Brisbane, Australia EFF contribution for UC2006 Auction
...
...
mysql-test/r/create.result
View file @
a5fd94b1
...
@@ -2662,5 +2662,21 @@ Warnings:
...
@@ -2662,5 +2662,21 @@ Warnings:
Note 1291 Column 'a' has duplicated value '' in ENUM
Note 1291 Column 'a' has duplicated value '' in ENUM
drop table t1;
drop table t1;
set @@session.collation_server=default;
set @@session.collation_server=default;
#
# MDEV-7765: Crash (Assertion `!table || (!table->write_set ||
# bitmap_is_set(table->write_set, field_index) ||
# bitmap_is_set(table->vcol_set, field_index))' fails)
# on using function over not created table
#
CREATE function f1() returns int
BEGIN
declare n int;
set n:= (select count(*) from t1);
return n;
end|
create table t1 as select f1();
ERROR 42S02: Table 'test.t1' doesn't exist
drop function f1;
End of 5.5 tests
create table t1;
create table t1;
ERROR 42000: A table must have at least 1 column
ERROR 42000: A table must have at least 1 column
mysql-test/r/ctype_utf8.result
View file @
a5fd94b1
...
@@ -116,7 +116,7 @@ hex(a) STRCMP(a,'a') STRCMP(a,'a ')
...
@@ -116,7 +116,7 @@ hex(a) STRCMP(a,'a') STRCMP(a,'a ')
DROP TABLE t1;
DROP TABLE t1;
select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
this is
a
test
this is test
select insert("aa",100,1,"b"),insert("aa",1,3,"b");
select insert("aa",100,1,"b"),insert("aa",1,3,"b");
insert("aa",100,1,"b") insert("aa",1,3,"b")
insert("aa",100,1,"b") insert("aa",1,3,"b")
aa b
aa b
...
@@ -5370,9 +5370,10 @@ SET sql_mode=default;
...
@@ -5370,9 +5370,10 @@ SET sql_mode=default;
SET NAMES utf8;
SET NAMES utf8;
CREATE TABLE t1 (a INT);
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (0), (0), (1), (0), (0);
INSERT INTO t1 VALUES (0), (0), (1), (0), (0);
SELECT COUNT(*) FROM t1, t1 t2
SELECT COUNT(*) FROM t1, t1 t2
GROUP BY INSERT('', t2.a, t1.a, (@@global.max_binlog_size));
GROUP BY INSERT('', t2.a, t1.a, (@@global.max_binlog_size));
ERROR 23000: Duplicate entry '107374182410737418241' for key 'group_key'
COUNT(*)
25
DROP TABLE t1;
DROP TABLE t1;
#
#
# Bug#11764503 (Bug#57341) Query in EXPLAIN EXTENDED shows wrong characters
# Bug#11764503 (Bug#57341) Query in EXPLAIN EXTENDED shows wrong characters
...
@@ -6082,6 +6083,22 @@ c0 c1 c2 c3 c4
...
@@ -6082,6 +6083,22 @@ c0 c1 c2 c3 c4
2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24
2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24 2012-06-11 15:18:24
DROP TABLE t2, t1;
DROP TABLE t2, t1;
#
#
# MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data
#
SET NAMES utf8;
CREATE TABLE t1 (a TEXT CHARACTER SET utf8);
INSERT INTO t1 VALUES (REPEAT('A',100));
SELECT OCTET_LENGTH(a) FROM t1;
OCTET_LENGTH(a)
300
ALTER TABLE t1 MODIFY a TINYTEXT CHARACTER SET utf8;
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT OCTET_LENGTH(a),a FROM t1;
OCTET_LENGTH(a) a
255 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
DROP TABLE t1;
#
# End of 5.5 tests
# End of 5.5 tests
#
#
#
#
...
...
mysql-test/r/ctype_utf8mb4.result
View file @
a5fd94b1
...
@@ -116,7 +116,7 @@ hex(a) STRCMP(a,'a') STRCMP(a,'a ')
...
@@ -116,7 +116,7 @@ hex(a) STRCMP(a,'a') STRCMP(a,'a ')
DROP TABLE t1;
DROP TABLE t1;
select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
select insert('txs',2,1,'hi'),insert('is ',4,0,'a'),insert('txxxxt',2,4,'es');
insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
this is
a
test
this is test
select insert("aa",100,1,"b"),insert("aa",1,3,"b");
select insert("aa",100,1,"b"),insert("aa",1,3,"b");
insert("aa",100,1,"b") insert("aa",1,3,"b")
insert("aa",100,1,"b") insert("aa",1,3,"b")
aa b
aa b
...
@@ -2809,6 +2809,22 @@ Warning 1292 Truncated incorrect INTEGER value: 'a'
...
@@ -2809,6 +2809,22 @@ Warning 1292 Truncated incorrect INTEGER value: 'a'
DROP TABLE t1;
DROP TABLE t1;
# End of test for Bug#13581962,Bug#14096619
# End of test for Bug#13581962,Bug#14096619
#
#
# MDEV-9319 ALTER from a bigger to a smaller blob type truncates too much data
#
SET NAMES utf8mb4;
CREATE TABLE t1 (a TEXT CHARACTER SET utf8mb4);
INSERT INTO t1 VALUES (REPEAT('😎',100));
SELECT OCTET_LENGTH(a) FROM t1;
OCTET_LENGTH(a)
400
ALTER TABLE t1 MODIFY a TINYTEXT CHARACTER SET utf8mb4;
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT OCTET_LENGTH(a),a FROM t1;
OCTET_LENGTH(a) a
252 😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎😎
DROP TABLE t1;
#
# End of 5.5 tests
# End of 5.5 tests
#
#
#
#
...
...
Prev
1
2
3
4
5
6
…
16
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment