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
3c2bdb59
Commit
3c2bdb59
authored
Jul 13, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into zippy.(none):/home/cmiller/work/mysql/m41-maint--07AB5
parents
5392be95
17870724
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
sql/item_func.h
sql/item_func.h
+4
-1
sql/sql_base.cc
sql/sql_base.cc
+5
-3
No files found.
sql/item_func.h
View file @
3c2bdb59
...
@@ -138,7 +138,10 @@ public:
...
@@ -138,7 +138,10 @@ public:
{
{
return
(
null_value
=
args
[
0
]
->
get_time
(
ltime
));
return
(
null_value
=
args
[
0
]
->
get_time
(
ltime
));
}
}
bool
is_null
()
{
(
void
)
val_int
();
return
null_value
;
}
bool
is_null
()
{
(
void
)
val_int
();
/* Discard result. It sets null_value as side-effect. */
return
null_value
;
}
friend
class
udf_handler
;
friend
class
udf_handler
;
Field
*
tmp_table_field
()
{
return
result_field
;
}
Field
*
tmp_table_field
()
{
return
result_field
;
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
);
Field
*
tmp_table_field
(
TABLE
*
t_arg
);
...
...
sql/sql_base.cc
View file @
3c2bdb59
...
@@ -496,11 +496,13 @@ void close_temporary_tables(THD *thd)
...
@@ -496,11 +496,13 @@ void close_temporary_tables(THD *thd)
TABLE
*
table
;
TABLE
*
table
;
if
(
!
thd
->
temporary_tables
)
if
(
!
thd
->
temporary_tables
)
return
;
return
;
if
(
!
mysql_bin_log
.
is_open
())
if
(
!
mysql_bin_log
.
is_open
())
{
{
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
table
->
next
)
TABLE
*
next
;
for
(
table
=
thd
->
temporary_tables
;
table
;
table
=
next
)
{
{
next
=
table
->
next
;
close_temporary
(
table
,
1
);
close_temporary
(
table
,
1
);
}
}
thd
->
temporary_tables
=
0
;
thd
->
temporary_tables
=
0
;
...
@@ -518,7 +520,7 @@ void close_temporary_tables(THD *thd)
...
@@ -518,7 +520,7 @@ void close_temporary_tables(THD *thd)
String
s_query
=
String
(
buf
,
sizeof
(
buf
),
system_charset_info
);
String
s_query
=
String
(
buf
,
sizeof
(
buf
),
system_charset_info
);
bool
found_user_tables
=
false
;
bool
found_user_tables
=
false
;
LINT_INIT
(
next
);
LINT_INIT
(
next
);
/*
/*
insertion sort of temp tables by pseudo_thread_id to build ordered list
insertion sort of temp tables by pseudo_thread_id to build ordered list
of sublists of equal pseudo_thread_id
of sublists of equal pseudo_thread_id
...
...
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