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
4bb4a285
Commit
4bb4a285
authored
Apr 11, 2005
by
reggie@mdk10.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mdk10.(none):/home/reggie/bk/mysql-4.1
into mdk10.(none):/home/reggie/bk/mysql-5.0
parents
c53c3b11
d07945c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+2
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+1
-0
sql/item_create.cc
sql/item_create.cc
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+12
-9
No files found.
mysql-test/r/query_cache.result
View file @
4bb4a285
...
@@ -299,6 +299,8 @@ select UNIX_TIMESTAMP() from t1;
...
@@ -299,6 +299,8 @@ select UNIX_TIMESTAMP() from t1;
UNIX_TIMESTAMP()
UNIX_TIMESTAMP()
select USER() from t1;
select USER() from t1;
USER()
USER()
select CURRENT_USER() from t1;
CURRENT_USER()
select benchmark(1,1) from t1;
select benchmark(1,1) from t1;
benchmark(1,1)
benchmark(1,1)
explain extended select benchmark(1,1) from t1;
explain extended select benchmark(1,1) from t1;
...
...
mysql-test/t/query_cache.test
View file @
4bb4a285
...
@@ -184,6 +184,7 @@ select LAST_INSERT_ID() from t1;
...
@@ -184,6 +184,7 @@ select LAST_INSERT_ID() from t1;
select
RAND
()
from
t1
;
select
RAND
()
from
t1
;
select
UNIX_TIMESTAMP
()
from
t1
;
select
UNIX_TIMESTAMP
()
from
t1
;
select
USER
()
from
t1
;
select
USER
()
from
t1
;
select
CURRENT_USER
()
from
t1
;
select
benchmark
(
1
,
1
)
from
t1
;
select
benchmark
(
1
,
1
)
from
t1
;
explain
extended
select
benchmark
(
1
,
1
)
from
t1
;
explain
extended
select
benchmark
(
1
,
1
)
from
t1
;
show
status
like
"Qcache_queries_in_cache"
;
show
status
like
"Qcache_queries_in_cache"
;
...
...
sql/item_create.cc
View file @
4bb4a285
...
@@ -303,6 +303,7 @@ Item *create_func_current_user()
...
@@ -303,6 +303,7 @@ Item *create_func_current_user()
char
buff
[
HOSTNAME_LENGTH
+
USERNAME_LENGTH
+
2
];
char
buff
[
HOSTNAME_LENGTH
+
USERNAME_LENGTH
+
2
];
uint
length
;
uint
length
;
thd
->
lex
->
safe_to_cache_query
=
0
;
length
=
(
uint
)
(
strxmov
(
buff
,
thd
->
priv_user
,
"@"
,
thd
->
priv_host
,
NullS
)
-
length
=
(
uint
)
(
strxmov
(
buff
,
thd
->
priv_user
,
"@"
,
thd
->
priv_host
,
NullS
)
-
buff
);
buff
);
return
new
Item_static_string_func
(
"current_user()"
,
return
new
Item_static_string_func
(
"current_user()"
,
...
...
sql/mysqld.cc
View file @
4bb4a285
...
@@ -788,15 +788,6 @@ void kill_mysql(void)
...
@@ -788,15 +788,6 @@ void kill_mysql(void)
CloseHandle(hEvent);
CloseHandle(hEvent);
*/
*/
}
}
#ifdef HAVE_SMEM
/*
Send event to smem_event_connect_request for aborting
*/
if
(
!
SetEvent
(
smem_event_connect_request
))
{
DBUG_PRINT
(
"error"
,(
"Got error: %ld from SetEvent of smem_event_connect_request"
,
GetLastError
()));
}
#endif
#endif
#endif
#elif defined(OS2)
#elif defined(OS2)
pthread_cond_signal
(
&
eventShutdown
);
// post semaphore
pthread_cond_signal
(
&
eventShutdown
);
// post semaphore
...
@@ -850,6 +841,18 @@ static void __cdecl kill_server(int sig_ptr)
...
@@ -850,6 +841,18 @@ static void __cdecl kill_server(int sig_ptr)
else
else
sql_print_error
(
ER
(
ER_GOT_SIGNAL
),
my_progname
,
sig
);
/* purecov: inspected */
sql_print_error
(
ER
(
ER_GOT_SIGNAL
),
my_progname
,
sig
);
/* purecov: inspected */
#if defined(HAVE_SMEM) && defined(__WIN__)
/*
Send event to smem_event_connect_request for aborting
*/
if
(
!
SetEvent
(
smem_event_connect_request
))
{
DBUG_PRINT
(
"error"
,
(
"Got error: %ld from SetEvent of smem_event_connect_request"
,
GetLastError
()));
}
#endif
#if defined(__NETWARE__) || (defined(USE_ONE_SIGNAL_HAND) && !defined(__WIN__) && !defined(OS2))
#if defined(__NETWARE__) || (defined(USE_ONE_SIGNAL_HAND) && !defined(__WIN__) && !defined(OS2))
my_thread_init
();
// If this is a new thread
my_thread_init
();
// If this is a new thread
#endif
#endif
...
...
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