Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
98ea8062
Commit
98ea8062
authored
Mar 21, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '5.5' into 10.0
parents
b9e57188
11b77e9b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
15 deletions
+43
-15
client/mysqlcheck.c
client/mysqlcheck.c
+0
-1
mysql-test/r/events_2.result
mysql-test/r/events_2.result
+2
-2
mysql-test/suite/sys_vars/t/secure_file_priv.test
mysql-test/suite/sys_vars/t/secure_file_priv.test
+31
-9
mysql-test/t/events_2.test
mysql-test/t/events_2.test
+1
-1
mysys/lf_alloc-pin.c
mysys/lf_alloc-pin.c
+8
-1
sql/gcalc_slicescan.h
sql/gcalc_slicescan.h
+1
-1
No files found.
client/mysqlcheck.c
View file @
98ea8062
...
...
@@ -523,7 +523,6 @@ static int is_view(const char *table)
{
fprintf
(
stderr
,
"Failed to %s
\n
"
,
query
);
fprintf
(
stderr
,
"Error: %s
\n
"
,
mysql_error
(
sock
));
my_free
(
query
);
DBUG_RETURN
(
-
1
);
}
res
=
mysql_store_result
(
sock
);
...
...
mysql-test/r/events_2.result
View file @
98ea8062
drop database if exists events_test;
create database events_test;
use events_test;
create event e_26 on schedule at '20
1
7-01-01 00:00:00' disable do set @a = 5;
create event e_26 on schedule at '20
2
7-01-01 00:00:00' disable do set @a = 5;
select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
db name body definer convert_tz(execute_at, 'UTC', 'SYSTEM') on_completion
events_test e_26 set @a = 5 root@localhost 20
1
7-01-01 00:00:00 DROP
events_test e_26 set @a = 5 root@localhost 20
2
7-01-01 00:00:00 DROP
drop event e_26;
create event e_26 on schedule at NULL disable do set @a = 5;
ERROR HY000: Incorrect AT value: 'NULL'
...
...
mysql-test/suite/sys_vars/t/secure_file_priv.test
View file @
98ea8062
...
...
@@ -5,17 +5,39 @@ CREATE TABLE t1 (c1 VARCHAR(50));
INSERT
INTO
t1
VALUES
(
"one"
),(
"two"
),(
"three"
),(
"four"
),(
"five"
);
SHOW
VARIABLES
LIKE
'secure_file_priv'
;
--
disable_query_log
# Atempt to create a file where we normally aren't allowed to create one.
#
# Doing this in a portable manner is difficult but we should be able to
# count on the depth of the directory hierarchy used. Three steps up from
# the datadir is the 'mysql_test' directory.
--
let
$PROTECTED_FILE
=
`SELECT concat(@@datadir,'/../../../bug50373.txt')`
--
eval
SELECT
*
FROM
t1
INTO
OUTFILE
'$PROTECTED_FILE'
;
DELETE
FROM
t1
;
--
eval
LOAD
DATA
INFILE
'$PROTECTED_FILE'
INTO
TABLE
t1
;
SELECT
*
FROM
t1
;
--
eval
SELECT
load_file
(
'$PROTECTED_FILE'
)
AS
loaded_file
;
# count on the directory hierarchy used. A step up from MYSQLTEST_VARDIR
# should definitely lead us to a "protected" directory,
# but at the same time should still be writable since MTR was able
# to create the vardir itself there.
# If we run tests normally, it will be mysql-test directory.
# If we run tests with --mem, it will be /dev/shm.
# If we run tests with --parallel, it will be mysql-test/var
# (because MYSQLTEST_VARDIR in this case is mysql-test/var/N).
--
perl
use
File
::Basename
;
my
$protected_file
=
dirname
(
$ENV
{
MYSQLTEST_VARDIR
})
.
'/bug50373.txt'
;
open
(
FILE
,
">"
,
"
$ENV
{
MYSQL_TMP_DIR
}
/bug50373.inc"
)
or
die
;
print
FILE
"SELECT * FROM t1 INTO OUTFILE '"
.
$protected_file
.
"';
\n
"
;
print
FILE
"DELETE FROM t1;
\n
"
;
print
FILE
"LOAD DATA INFILE '"
.
$protected_file
.
"' INTO TABLE t1;
\n
"
;
print
FILE
"SELECT * FROM t1;
\n
"
;
print
FILE
"SELECT load_file('"
,
$protected_file
,
"') AS loaded_file;
\n
"
;
close
(
FILE
);
EOF
--
source
$MYSQL_TMP_DIR
/
bug50373
.
inc
--
remove_file
$MYSQL_TMP_DIR
/
bug50373
.
inc
--
enable_query_log
remove_file
$PROTECTED_FILE
;
DROP
TABLE
t1
;
--
perl
use
File
::Basename
;
unlink
dirname
(
$ENV
{
MYSQLTEST_VARDIR
})
.
'/bug50373.txt'
;
EOF
mysql-test/t/events_2.test
View file @
98ea8062
...
...
@@ -13,7 +13,7 @@ use events_test;
# mysql.event intact checking end
#
create
event
e_26
on
schedule
at
'20
1
7-01-01 00:00:00'
disable
do
set
@
a
=
5
;
create
event
e_26
on
schedule
at
'20
2
7-01-01 00:00:00'
disable
do
set
@
a
=
5
;
select
db
,
name
,
body
,
definer
,
convert_tz
(
execute_at
,
'UTC'
,
'SYSTEM'
),
on_completion
from
mysql
.
event
;
drop
event
e_26
;
--
error
ER_WRONG_VALUE
...
...
mysys/lf_alloc-pin.c
View file @
98ea8062
...
...
@@ -103,6 +103,12 @@
#include <my_sys.h>
#include <lf.h>
/*
when using alloca() leave at least that many bytes of the stack -
for functions we might be calling from within this stack frame
*/
#define ALLOCA_SAFETY_MARGIN 8192
#define LF_PINBOX_MAX_PINS 65536
static
void
_lf_pinbox_real_free
(
LF_PINS
*
pins
);
...
...
@@ -349,7 +355,8 @@ static void _lf_pinbox_real_free(LF_PINS *pins)
{
int
alloca_size
=
sizeof
(
void
*
)
*
LF_PINBOX_PINS
*
npins
;
/* create a sorted list of pinned addresses, to speed up searches */
if
(
available_stack_size
(
&
pinbox
,
*
pins
->
stack_ends_here
)
>
alloca_size
)
if
(
available_stack_size
(
&
pinbox
,
*
pins
->
stack_ends_here
)
>
alloca_size
+
ALLOCA_SAFETY_MARGIN
)
{
struct
st_harvester
hv
;
addr
=
(
void
**
)
alloca
(
alloca_size
);
...
...
sql/gcalc_slicescan.h
View file @
98ea8062
...
...
@@ -26,7 +26,7 @@
#ifndef GCALC_DBUG_OFF
#define GCALC_DBUG_PRINT(b) DBUG_PRINT("Gcalc", b)
#define GCALC_DBUG_ENTER(a) DBUG_ENTER("Gcalc "a)
#define GCALC_DBUG_ENTER(a) DBUG_ENTER("Gcalc "
a)
#define GCALC_DBUG_RETURN(r) DBUG_RETURN(r)
#define GCALC_DBUG_VOID_RETURN DBUG_VOID_RETURN
#define GCALC_DBUG_ASSERT(r) DBUG_ASSERT(r)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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