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
68d5420d
Commit
68d5420d
authored
Aug 15, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up merge from 4.1
parent
2d342764
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
mysql-test/r/func_date_add.result
mysql-test/r/func_date_add.result
+2
-2
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+14
-0
server-tools/instance-manager/protocol.cc
server-tools/instance-manager/protocol.cc
+1
-1
sql/sp_head.cc
sql/sp_head.cc
+1
-1
No files found.
mysql-test/r/func_date_add.result
View file @
68d5420d
...
@@ -56,10 +56,10 @@ insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
...
@@ -56,10 +56,10 @@ insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
set sql_mode='';
set sql_mode='';
insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
Warnings:
Warnings:
Warning 14
37
Datetime function: datetime field overflow
Warning 14
41
Datetime function: datetime field overflow
insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
Warnings:
Warnings:
Warning 14
37
Datetime function: datetime field overflow
Warning 14
41
Datetime function: datetime field overflow
insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
select * from t1;
select * from t1;
...
...
mysql-test/r/func_time.result
View file @
68d5420d
...
@@ -247,9 +247,13 @@ date_add("1997-12-31 23:59:59",INTERVAL -100000 DAY)
...
@@ -247,9 +247,13 @@ date_add("1997-12-31 23:59:59",INTERVAL -100000 DAY)
select date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH);
select date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH);
date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH)
date_add("1997-12-31 23:59:59",INTERVAL 100000 MONTH)
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
select date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR);
select date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR);
date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR)
date_add("1997-12-31 23:59:59",INTERVAL -100000 YEAR)
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
select date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND);
select date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND);
date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND)
date_add("1997-12-31 23:59:59",INTERVAL "10000:1" MINUTE_SECOND)
1998-01-07 22:40:00
1998-01-07 22:40:00
...
@@ -301,6 +305,8 @@ NULL
...
@@ -301,6 +305,8 @@ NULL
select date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND);
select date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND);
date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND)
date_add("9999-12-31 23:59:59",INTERVAL 1 SECOND)
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
select date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND);
select date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND);
date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND)
date_sub("0000-00-00 00:00:00",INTERVAL 1 SECOND)
NULL
NULL
...
@@ -375,15 +381,23 @@ SELECT "1900-01-01 00:00:00" + INTERVAL 1<<20 HOUR;
...
@@ -375,15 +381,23 @@ SELECT "1900-01-01 00:00:00" + INTERVAL 1<<20 HOUR;
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND;
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND;
"1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND
"1900-01-01 00:00:00" + INTERVAL 1<<38 SECOND
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE;
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE;
"1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE
"1900-01-01 00:00:00" + INTERVAL 1<<33 MINUTE
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR;
SELECT "1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR;
"1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR
"1900-01-01 00:00:00" + INTERVAL 1<<30 HOUR
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
SELECT "1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND;
SELECT "1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND;
"1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND
"1900-01-01 00:00:00" + INTERVAL "1000000000:214748364700" MINUTE_SECOND
NULL
NULL
Warnings:
Warning 1441 Datetime function: datetime field overflow
create table t1 (ctime varchar(20));
create table t1 (ctime varchar(20));
insert into t1 values ('2001-01-12 12:23:40');
insert into t1 values ('2001-01-12 12:23:40');
select ctime, hour(ctime) from t1;
select ctime, hour(ctime) from t1;
...
...
server-tools/instance-manager/protocol.cc
View file @
68d5420d
...
@@ -203,7 +203,7 @@ int send_fields(struct st_net *net, LIST *fields)
...
@@ -203,7 +203,7 @@ int send_fields(struct st_net *net, LIST *fields)
position
+=
12
;
position
+=
12
;
if
(
my_net_write
(
net
,
send_buff
.
buffer
,
(
uint
)
position
+
1
))
if
(
my_net_write
(
net
,
send_buff
.
buffer
,
(
uint
)
position
+
1
))
goto
err
;
goto
err
;
tmp
=
rest
(
tmp
);
tmp
=
list_
rest
(
tmp
);
}
}
if
(
my_net_write
(
net
,
eof_buff
,
1
))
if
(
my_net_write
(
net
,
eof_buff
,
1
))
...
...
sql/sp_head.cc
View file @
68d5420d
...
@@ -737,7 +737,7 @@ sp_head::execute(THD *thd)
...
@@ -737,7 +737,7 @@ sp_head::execute(THD *thd)
if
(
dbchanged
)
if
(
dbchanged
)
{
{
if
(
!
thd
->
killed
)
if
(
!
thd
->
killed
)
ret
=
sp
_change_db
(
thd
,
olddb
,
0
);
ret
=
mysql
_change_db
(
thd
,
olddb
,
0
);
}
}
m_is_invoked
=
FALSE
;
m_is_invoked
=
FALSE
;
DBUG_RETURN
(
ret
);
DBUG_RETURN
(
ret
);
...
...
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