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
b49b5805
Commit
b49b5805
authored
Jun 28, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abort storing query to query cache if warnings appeared (BUG#9414)
parent
ec35d6bf
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+35
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+19
-0
sql/sql_error.cc
sql/sql_error.cc
+2
-0
No files found.
mysql-test/r/query_cache.result
View file @
b49b5805
This diff is collapsed.
Click to expand it.
mysql-test/t/query_cache.test
View file @
b49b5805
...
...
@@ -730,4 +730,23 @@ flush query cache;
drop
table
t1
,
t2
;
#
# Query with warning prohibited to query cache (BUG#9414)
#
flush
status
;
CREATE
TABLE
t1
(
`date`
datetime
NOT
NULL
default
'0000-00-00 00:00:00'
,
KEY
`date`
(
`date`
)
)
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
'20050326'
);
INSERT
INTO
t1
VALUES
(
'20050325'
);
SELECT
COUNT
(
*
)
FROM
t1
WHERE
date
BETWEEN
'20050326'
AND
'20050327 0:0:0'
;
SELECT
COUNT
(
*
)
FROM
t1
WHERE
date
BETWEEN
'20050326'
AND
'20050328 0:0:0'
;
SELECT
COUNT
(
*
)
FROM
t1
WHERE
date
BETWEEN
'20050326'
AND
'20050327 0:0:0'
;
show
status
like
"Qcache_queries_in_cache"
;
show
status
like
"Qcache_inserts"
;
show
status
like
"Qcache_hits"
;
drop
table
t1
;
set
GLOBAL
query_cache_size
=
0
;
sql/sql_error.cc
View file @
b49b5805
...
...
@@ -108,6 +108,8 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
if
(
level
==
MYSQL_ERROR
::
WARN_LEVEL_NOTE
&&
!
(
thd
->
options
&
OPTION_SQL_NOTES
))
return
(
0
);
query_cache_abort
(
&
thd
->
net
);
if
(
thd
->
query_id
!=
thd
->
warn_id
)
mysql_reset_errors
(
thd
);
...
...
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