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
3584e353
Commit
3584e353
authored
Aug 06, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a bug which caused problems in CREATE from SELECT with
MONTH() function in SELECT list ...
parent
ac8adfa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/item_timefunc.h
sql/item_timefunc.h
+5
-0
No files found.
sql/item_timefunc.h
View file @
3584e353
...
...
@@ -71,6 +71,11 @@ class Item_func_month :public Item_func
const
char
*
func_name
()
const
{
return
"month"
;
}
enum
Item_result
result_type
()
const
{
return
INT_RESULT
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
2
;
maybe_null
=
1
;
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
if
(
!
t_arg
)
return
result_field
;
return
(
Field
*
)
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
binary
);
}
};
class
Item_func_monthname
:
public
Item_func_month
...
...
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