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
511eb626
Commit
511eb626
authored
Nov 25, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b6441
parents
870c718b
167c9489
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
sql/item_func.cc
sql/item_func.cc
+11
-8
sql/item_sum.h
sql/item_sum.h
+1
-1
sql/sql_udf.h
sql/sql_udf.h
+2
-1
No files found.
sql/item_func.cc
View file @
511eb626
...
@@ -1602,18 +1602,21 @@ longlong Item_func_bit_count::val_int()
...
@@ -1602,18 +1602,21 @@ longlong Item_func_bit_count::val_int()
udf_handler
::~
udf_handler
()
udf_handler
::~
udf_handler
()
{
{
if
(
initialized
)
if
(
!
not_original
)
{
{
if
(
u_d
->
func_deinit
!=
NULL
)
if
(
initialized
)
{
{
void
(
*
deinit
)(
UDF_INIT
*
)
=
(
void
(
*
)(
UDF_INIT
*
))
if
(
u_d
->
func_deinit
!=
NULL
)
u_d
->
func_deinit
;
{
(
*
deinit
)(
&
initid
);
void
(
*
deinit
)(
UDF_INIT
*
)
=
(
void
(
*
)(
UDF_INIT
*
))
u_d
->
func_deinit
;
(
*
deinit
)(
&
initid
);
}
free_udf
(
u_d
);
}
}
free_udf
(
u_d
);
if
(
buffers
)
// Because of bug in ecc
delete
[]
buffers
;
}
}
if
(
buffers
)
// Because of bug in ecc
delete
[]
buffers
;
}
}
...
...
sql/item_sum.h
View file @
511eb626
...
@@ -531,7 +531,7 @@ class Item_udf_sum : public Item_sum
...
@@ -531,7 +531,7 @@ class Item_udf_sum : public Item_sum
:
Item_sum
(
list
),
udf
(
udf_arg
)
:
Item_sum
(
list
),
udf
(
udf_arg
)
{
quick_group
=
0
;}
{
quick_group
=
0
;}
Item_udf_sum
(
THD
*
thd
,
Item_udf_sum
*
item
)
Item_udf_sum
(
THD
*
thd
,
Item_udf_sum
*
item
)
:
Item_sum
(
thd
,
item
),
udf
(
item
->
udf
)
{}
:
Item_sum
(
thd
,
item
),
udf
(
item
->
udf
)
{
udf
.
not_original
=
TRUE
;
}
const
char
*
func_name
()
const
{
return
udf
.
name
();
}
const
char
*
func_name
()
const
{
return
udf
.
name
();
}
bool
fix_fields
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
**
ref
)
bool
fix_fields
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
**
ref
)
{
{
...
...
sql/sql_udf.h
View file @
511eb626
...
@@ -56,8 +56,9 @@ class udf_handler :public Sql_alloc
...
@@ -56,8 +56,9 @@ class udf_handler :public Sql_alloc
public:
public:
table_map
used_tables_cache
;
table_map
used_tables_cache
;
bool
const_item_cache
;
bool
const_item_cache
;
bool
not_original
;
udf_handler
(
udf_func
*
udf_arg
)
:
u_d
(
udf_arg
),
buffers
(
0
),
error
(
0
),
udf_handler
(
udf_func
*
udf_arg
)
:
u_d
(
udf_arg
),
buffers
(
0
),
error
(
0
),
is_null
(
0
),
initialized
(
0
)
is_null
(
0
),
initialized
(
0
)
,
not_original
(
0
)
{}
{}
~
udf_handler
();
~
udf_handler
();
const
char
*
name
()
const
{
return
u_d
?
u_d
->
name
.
str
:
"?"
;
}
const
char
*
name
()
const
{
return
u_d
?
u_d
->
name
.
str
:
"?"
;
}
...
...
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