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
ce93a3c2
Commit
ce93a3c2
authored
Oct 22, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postreview fixes
parent
bc68cd7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
sql/mysql_priv.h
sql/mysql_priv.h
+1
-0
sql/sql_base.cc
sql/sql_base.cc
+3
-2
sql/sql_cache.cc
sql/sql_cache.cc
+2
-2
No files found.
sql/mysql_priv.h
View file @
ce93a3c2
...
@@ -551,6 +551,7 @@ int mysql_ha_flush(THD *thd, TABLE_LIST *tables, uint mode_flags);
...
@@ -551,6 +551,7 @@ int mysql_ha_flush(THD *thd, TABLE_LIST *tables, uint mode_flags);
#define MYSQL_HA_FLUSH_ALL 0x02
#define MYSQL_HA_FLUSH_ALL 0x02
/* sql_base.cc */
/* sql_base.cc */
#define TMP_TABLE_KEY_EXTRA 8
void
set_item_name
(
Item
*
item
,
char
*
pos
,
uint
length
);
void
set_item_name
(
Item
*
item
,
char
*
pos
,
uint
length
);
bool
add_field_to_list
(
char
*
field_name
,
enum
enum_field_types
type
,
bool
add_field_to_list
(
char
*
field_name
,
enum
enum_field_types
type
,
char
*
length
,
char
*
decimal
,
char
*
length
,
char
*
decimal
,
...
...
sql/sql_base.cc
View file @
ce93a3c2
...
@@ -816,8 +816,9 @@ TABLE *open_table(THD *thd,const char *db,const char *table_name,
...
@@ -816,8 +816,9 @@ TABLE *open_table(THD *thd,const char *db,const char *table_name,
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
table
->
next
)
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
table
->
next
)
{
{
if
(
table
->
key_length
==
key_length
+
8
&&
if
(
table
->
key_length
==
key_length
+
TMP_TABLE_KEY_EXTRA
&&
!
memcmp
(
table
->
table_cache_key
,
key
,
key_length
+
8
))
!
memcmp
(
table
->
table_cache_key
,
key
,
key_length
+
TMP_TABLE_KEY_EXTRA
))
{
{
if
(
table
->
query_id
==
thd
->
query_id
)
if
(
table
->
query_id
==
thd
->
query_id
)
{
{
...
...
sql/sql_cache.cc
View file @
ce93a3c2
...
@@ -983,7 +983,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
...
@@ -983,7 +983,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
*/
*/
for
(
tmptable
=
thd
->
temporary_tables
;
tmptable
;
tmptable
=
tmptable
->
next
)
for
(
tmptable
=
thd
->
temporary_tables
;
tmptable
;
tmptable
=
tmptable
->
next
)
{
{
if
(
tmptable
->
key_length
-
8
==
table
->
key_len
()
&&
if
(
tmptable
->
key_length
-
TMP_TABLE_KEY_EXTRA
==
table
->
key_len
()
&&
!
memcmp
(
tmptable
->
table_cache_key
,
table
->
data
(),
!
memcmp
(
tmptable
->
table_cache_key
,
table
->
data
(),
table
->
key_len
()))
table
->
key_len
()))
{
{
...
@@ -993,7 +993,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
...
@@ -993,7 +993,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
/*
/*
We should not store result of this query because it contain
We should not store result of this query because it contain
temporary tables => assign following
w
ariable to make check
temporary tables => assign following
v
ariable to make check
faster.
faster.
*/
*/
thd
->
safe_to_cache_query
=
0
;
thd
->
safe_to_cache_query
=
0
;
...
...
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