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
fcbb672f
Commit
fcbb672f
authored
Oct 31, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL: NOT NULL for timestamps [#63, #300]
parent
55e9a5e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
mysql-test/r/create.result
mysql-test/r/create.result
+1
-1
mysql-test/r/func_group.result
mysql-test/r/func_group.result
+1
-1
mysql-test/r/func_time_hires.result
mysql-test/r/func_time_hires.result
+5
-5
sql/item_timefunc.cc
sql/item_timefunc.cc
+0
-1
No files found.
mysql-test/r/create.result
View file @
fcbb672f
...
...
@@ -132,7 +132,7 @@ drop table t2;
create table t2 select now() as a , curtime() as b, curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
describe t2;
Field Type Null Key Default Extra
a datetime
YES
NULL
a datetime
NO
NULL
b time NO NULL
c date NO NULL
d int(3) NO NULL
...
...
mysql-test/r/func_group.result
View file @
fcbb672f
...
...
@@ -787,7 +787,7 @@ drop table t2;
create table t2 select f2 from (select now() f2 from t1) a;
show columns from t2;
Field Type Null Key Default Extra
f2 datetime
YES
NULL
f2 datetime
NO
NULL
drop table t2, t1;
CREATE TABLE t1(
id int PRIMARY KEY,
...
...
mysql-test/r/func_time_hires.result
View file @
fcbb672f
...
...
@@ -39,14 +39,14 @@ t1 CREATE TABLE `t1` (
`sec_to_time(12345)` time DEFAULT NULL,
`sec_to_time(12345.6789)` time(4) DEFAULT NULL,
`sec_to_time(1234567e-2)` time(6) DEFAULT NULL,
`now()` datetime
DEFAUL
T NULL,
`now()` datetime
NO
T NULL,
`curtime(0)` time NOT NULL,
`utc_timestamp(1)` datetime(1)
DEFAUL
T NULL,
`utc_timestamp(1)` datetime(1)
NO
T NULL,
`utc_time(2)` time(2) NOT NULL,
`current_time(3)` time(3) NOT NULL,
`current_timestamp(4)` datetime(4)
DEFAUL
T NULL,
`localtime(5)` datetime(5)
DEFAUL
T NULL,
`localtimestamp(6)` datetime(6)
DEFAUL
T NULL,
`current_timestamp(4)` datetime(4)
NO
T NULL,
`localtime(5)` datetime(5)
NO
T NULL,
`localtimestamp(6)` datetime(6)
NO
T NULL,
`time_to_sec(123456)` bigint(17) DEFAULT NULL,
`time_to_sec('12:34:56.789')` decimal(19,3) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
...
...
sql/item_timefunc.cc
View file @
fcbb672f
...
...
@@ -1693,7 +1693,6 @@ Item_func_now::Item_func_now(THD *thd, uint dec) :
last_query_id
(
0
)
{
decimals
=
dec
;
maybe_null
=
true
;
}
...
...
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