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
cd320408
Commit
cd320408
authored
Sep 25, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some comments added
parent
f3e6405f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
sql/item.h
sql/item.h
+13
-1
No files found.
sql/item.h
View file @
cd320408
...
...
@@ -218,7 +218,8 @@ public:
a constant expression
*/
virtual
bool
basic_const_item
()
const
{
return
0
;
}
virtual
Item
*
new_item
()
{
return
0
;
}
/* Only for const items */
/* cloning of constant items (0 if it is not const) */
virtual
Item
*
new_item
()
{
return
0
;
}
virtual
cond_result
eq_cmp_result
()
const
{
return
COND_OK
;
}
inline
uint
float_length
(
uint
decimals_par
)
const
{
return
decimals
!=
NOT_FIXED_DEC
?
(
DBL_DIG
+
2
+
decimals_par
)
:
DBL_DIG
+
8
;}
...
...
@@ -242,11 +243,22 @@ public:
virtual
bool
get_date_result
(
TIME
*
ltime
,
uint
fuzzydate
)
{
return
get_date
(
ltime
,
fuzzydate
);
}
virtual
bool
is_null
()
{
return
0
;
}
/*
it is "top level" item of WHERE clause and we do not need correct NULL
handling
*/
virtual
void
top_level_item
()
{}
/*
set field of temporary table for Item which can be switched on temporary
table during query processing (groupping and so on)
*/
virtual
void
set_result_field
(
Field
*
field
)
{}
virtual
bool
is_result_field
()
{
return
0
;
}
virtual
bool
is_bool_func
()
{
return
0
;
}
virtual
void
save_in_result_field
(
bool
no_conversions
)
{}
/*
set value of aggegate function in case of no rows for groupping were found
*/
virtual
void
no_rows_in_result
()
{}
virtual
Item
*
copy_or_same
(
THD
*
thd
)
{
return
this
;
}
virtual
Item
*
copy_andor_structure
(
THD
*
thd
)
{
return
this
;
}
...
...
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