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
6062be89
Commit
6062be89
authored
Aug 30, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-437 Microseconds: In time functions precision is calculated modulo 256
store the precision in uint, not uint8
parent
6c1d4886
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+2
-0
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+2
-0
sql/item.h
sql/item.h
+1
-1
No files found.
mysql-test/r/func_time.result
View file @
6062be89
...
...
@@ -1897,3 +1897,5 @@ cast(greatest(cast("0-0-0" as date), cast("10:20:05" as time)) as datetime(6))
select microsecond('12:00:00.123456'), microsecond('2009-12-31 23:59:59.000010');
microsecond('12:00:00.123456') microsecond('2009-12-31 23:59:59.000010')
123456 10
select now(258);
ERROR 42000: Too big precision 258 specified for 'now'. Maximum is 6.
mysql-test/t/func_time.test
View file @
6062be89
...
...
@@ -1142,3 +1142,5 @@ select cast(greatest(cast("0-0-0" as date), cast("10:20:05" as time)) as datetim
select
microsecond
(
'12:00:00.123456'
),
microsecond
(
'2009-12-31 23:59:59.000010'
);
--
error
ER_TOO_BIG_PRECISION
select
now
(
258
);
sql/item.h
View file @
6062be89
...
...
@@ -582,8 +582,8 @@ class Item {
calls.
*/
uint
name_length
;
/* Length of name */
uint
decimals
;
int8
marker
;
uint8
decimals
;
bool
maybe_null
;
/* If item may be null */
bool
in_rollup
;
/* If used in GROUP BY list
of a query with ROLLUP */
...
...
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