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
0ba2425c
Commit
0ba2425c
authored
Feb 21, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bug#16407 (EVENTS: sql_mode)
post-review fixes
parent
a1fdeb13
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
+23
-19
mysql-test/r/events_bugs.result
mysql-test/r/events_bugs.result
+11
-11
sql/event.cc
sql/event.cc
+1
-1
sql/event_executor.cc
sql/event_executor.cc
+1
-1
sql/event_timed.cc
sql/event_timed.cc
+9
-5
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/r/events_bugs.result
View file @
0ba2425c
...
...
@@ -18,8 +18,8 @@ end|
show processlist;
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# event_scheduler NULL Connect # Sleeping NULL
# root events_test Connect # User lock select get_lock('test_bug16407', 60)
# event_scheduler
localhost
NULL Connect # Sleeping NULL
# root
localhost
events_test Connect # User lock select get_lock('test_bug16407', 60)
select release_lock('test_bug16407');
release_lock('test_bug16407')
1
...
...
@@ -72,17 +72,17 @@ set global event_scheduler= 1;
show processlist;
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# event_scheduler NULL Connect # Sleeping NULL
# root events_test Connect # User lock select get_lock('ee_16407_2', 60)
# root events_test Connect # User lock select get_lock('ee_16407_2', 60)
# root events_test Connect # User lock select get_lock('ee_16407_2', 60)
# event_scheduler
localhost
NULL Connect # Sleeping NULL
# root
localhost
events_test Connect # User lock select get_lock('ee_16407_2', 60)
# root
localhost
events_test Connect # User lock select get_lock('ee_16407_2', 60)
# root
localhost
events_test Connect # User lock select get_lock('ee_16407_2', 60)
select release_lock('ee_16407_2');
release_lock('ee_16407_2')
1
show processlist;
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# event_scheduler NULL Connect # Sleeping NULL
# event_scheduler
localhost
NULL Connect # Sleeping NULL
set global event_scheduler= 0;
select * from events_smode_test order by ev_name, a;
ev_name a
...
...
@@ -121,16 +121,16 @@ set global event_scheduler= 1;
show processlist;
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# event_scheduler NULL Connect # Sleeping NULL
# root events_test Connect # User lock select get_lock('ee_16407_5', 60)
# root events_test Connect # User lock select get_lock('ee_16407_5', 60)
# event_scheduler
localhost
NULL Connect # Sleeping NULL
# root
localhost
events_test Connect # User lock select get_lock('ee_16407_5', 60)
# root
localhost
events_test Connect # User lock select get_lock('ee_16407_5', 60)
select release_lock('ee_16407_5');
release_lock('ee_16407_5')
1
show processlist;
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# event_scheduler NULL Connect # Sleeping NULL
# event_scheduler
localhost
NULL Connect # Sleeping NULL
select * from events_smode_test order by ev_name, a;
ev_name a
ee_16407_6 2004-02-29
...
...
sql/event.cc
View file @
0ba2425c
...
...
@@ -1384,7 +1384,7 @@ evex_show_create_event(THD *thd, sp_name *spn, LEX_STRING definer)
char
show_str_buf
[
768
];
String
show_str
(
show_str_buf
,
sizeof
(
show_str_buf
),
system_charset_info
);
List
<
Item
>
field_list
;
const
char
*
sql_mode_str
;
byte
*
sql_mode_str
;
ulong
sql_mode_len
=
0
;
show_str
.
length
(
0
);
...
...
sql/event_executor.cc
View file @
0ba2425c
...
...
@@ -268,7 +268,7 @@ init_event_thread(THD* thd)
thd
->
client_capabilities
=
0
;
thd
->
security_ctx
->
master_access
=
0
;
thd
->
security_ctx
->
db_access
=
0
;
thd
->
security_ctx
->
host
=
(
char
*
)
my_localhost
;
thd
->
security_ctx
->
host
_or_ip
=
(
char
*
)
my_localhost
;
my_net_init
(
&
thd
->
net
,
0
);
thd
->
net
.
read_timeout
=
slave_net_timeout
;
thd
->
slave_thread
=
0
;
...
...
sql/event_timed.cc
View file @
0ba2425c
...
...
@@ -111,17 +111,21 @@ void
event_timed
::
init_body
(
THD
*
thd
)
{
DBUG_ENTER
(
"event_timed::init_body"
);
MEM_ROOT
*
root
=
thd
->
mem_root
;
DBUG_PRINT
(
"info"
,
(
"body=[%s] body_begin=0x%ld end=0x%ld"
,
body_begin
,
body_begin
,
thd
->
lex
->
ptr
));
body
.
length
=
thd
->
lex
->
ptr
-
body_begin
;
// Trim nuls at the end
while
(
body
.
length
&&
body_begin
[
body
.
length
-
1
]
==
'\0'
)
body
.
length
--
;
//the first is always space which I cannot skip in the parser
DBUG_ASSERT
(
my_isspace
(
thd
->
variables
.
character_set_client
,
*
body_begin
));
body
.
length
--
;
body
.
str
=
strmake_root
(
root
,
(
char
*
)
body_begin
+
1
,
body
.
length
);
/* the first is always whitespace which I cannot skip in the parser */
while
(
my_isspace
(
thd
->
variables
.
character_set_client
,
*
body_begin
))
{
++
body_begin
;
--
body
.
length
;
}
body
.
str
=
strmake_root
(
thd
->
mem_root
,
(
char
*
)
body_begin
,
body
.
length
);
DBUG_VOID_RETURN
;
}
...
...
sql/sql_show.cc
View file @
0ba2425c
...
...
@@ -3956,7 +3956,7 @@ fill_events_copy_to_schema_table(THD *thd, TABLE *sch_table, TABLE *event_table)
// [9] is SQL_MODE
{
const
char
*
sql_mode_str
=
""
;
byte
*
sql_mode_str
;
ulong
sql_mode_len
=
0
;
sql_mode_str
=
sys_var_thd_sql_mode
::
symbolic_mode_representation
(
thd
,
et
.
sql_mode
,
...
...
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