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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b0dd3881
Commit
b0dd3881
authored
Apr 11, 2005
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/dlenev/src/mysql-4.0-bg9796
into mysql.com:/home/dlenev/src/mysql-4.1-merges
parents
16e18677
06e36472
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
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
No files found.
mysql-test/r/query_cache.result
View file @
b0dd3881
...
...
@@ -299,6 +299,8 @@ select UNIX_TIMESTAMP() from t1;
UNIX_TIMESTAMP()
select USER() from t1;
USER()
select CURRENT_USER() from t1;
CURRENT_USER()
select benchmark(1,1) from t1;
benchmark(1,1)
explain extended select benchmark(1,1) from t1;
...
...
mysql-test/t/query_cache.test
View file @
b0dd3881
...
...
@@ -184,6 +184,7 @@ select LAST_INSERT_ID() from t1;
select
RAND
()
from
t1
;
select
UNIX_TIMESTAMP
()
from
t1
;
select
USER
()
from
t1
;
select
CURRENT_USER
()
from
t1
;
select
benchmark
(
1
,
1
)
from
t1
;
explain
extended
select
benchmark
(
1
,
1
)
from
t1
;
show
status
like
"Qcache_queries_in_cache"
;
...
...
sql/item_create.cc
View file @
b0dd3881
...
...
@@ -306,6 +306,7 @@ Item *create_func_current_user()
char
buff
[
HOSTNAME_LENGTH
+
USERNAME_LENGTH
+
2
];
uint
length
;
thd
->
safe_to_cache_query
=
0
;
length
=
(
uint
)
(
strxmov
(
buff
,
thd
->
priv_user
,
"@"
,
thd
->
priv_host
,
NullS
)
-
buff
);
return
new
Item_string
(
NullS
,
thd
->
memdup
(
buff
,
length
),
length
,
...
...
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