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
87507451
Commit
87507451
authored
Sep 23, 2016
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL: fractions in I_S TIMESTAMP fields
parent
9186cae4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sql/item.h
sql/item.h
+2
-2
sql/sql_show.cc
sql/sql_show.cc
+2
-1
No files found.
sql/item.h
View file @
87507451
...
...
@@ -3622,10 +3622,10 @@ class Item_return_date_time :public Item_partition_func_safe_string
enum_field_types
date_time_field_type
;
public:
Item_return_date_time
(
THD
*
thd
,
const
char
*
name_arg
,
uint
length_arg
,
enum_field_types
field_type_arg
)
:
enum_field_types
field_type_arg
,
uint
dec_arg
=
0
)
:
Item_partition_func_safe_string
(
thd
,
name_arg
,
length_arg
,
&
my_charset_bin
),
date_time_field_type
(
field_type_arg
)
{
decimals
=
0
;
}
{
decimals
=
dec_arg
;
}
enum_field_types
field_type
()
const
{
return
date_time_field_type
;
}
};
...
...
sql/sql_show.cc
View file @
87507451
...
...
@@ -7730,7 +7730,8 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list)
if
(
!
(
item
=
new
(
mem_root
)
Item_return_date_time
(
thd
,
fields_info
->
field_name
,
strlen
(
fields_info
->
field_name
),
fields_info
->
field_type
)))
fields_info
->
field_type
,
fields_info
->
field_length
)))
DBUG_RETURN
(
0
);
item
->
decimals
=
fields_info
->
field_length
;
break
;
...
...
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