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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9660ea64
Commit
9660ea64
authored
Feb 20, 2007
by
thek@kpdesk.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge kpettersson@bk-internal:/home/bk/mysql-5.1-runtime
into kpdesk.mysql.com:/home/thek/dev/mysql-5.1-runtime
parents
99354e55
bfea428c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
3 deletions
+27
-3
mysql-test/r/init_file.result
mysql-test/r/init_file.result
+7
-0
mysql-test/std_data/init_file.dat
mysql-test/std_data/init_file.dat
+9
-0
mysql-test/t/init_file.test
mysql-test/t/init_file.test
+9
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+0
-1
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+0
-1
sql/sql_class.cc
sql/sql_class.cc
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
No files found.
mysql-test/r/init_file.result
View file @
9660ea64
INSERT INTO init_file.startup VALUES ( NOW() );
SELECT * INTO @X FROM init_file.startup limit 0,1;
SELECT * INTO @Y FROM init_file.startup limit 1,1;
SELECT YEAR(@X)-YEAR(@Y);
YEAR(@X)-YEAR(@Y)
0
DROP DATABASE init_file;
ok
end of 4.1 tests
select * from t1;
...
...
mysql-test/std_data/init_file.dat
View file @
9660ea64
...
...
@@ -27,3 +27,12 @@ insert into t2 values (11), (13);
drop procedure p1;
drop function f1;
drop view v1;
#
# Bug#23240 --init-file statements with NOW() reports '1970-01-01 11:00:00'as the date time
#
CREATE DATABASE IF NOT EXISTS init_file;
CREATE TABLE IF NOT EXISTS init_file.startup ( startdate DATETIME );
INSERT INTO init_file.startup VALUES ( NOW() );
mysql-test/t/init_file.test
View file @
9660ea64
...
...
@@ -6,6 +6,15 @@
# mysql-test/t/init_file-master.opt for the actual test
#
#
# Bug#23240 --init-file statements with NOW() reports '1970-01-01 11:00:00'as the date time
#
INSERT
INTO
init_file
.
startup
VALUES
(
NOW
()
);
SELECT
*
INTO
@
X
FROM
init_file
.
startup
limit
0
,
1
;
SELECT
*
INTO
@
Y
FROM
init_file
.
startup
limit
1
,
1
;
SELECT
YEAR
(
@
X
)
-
YEAR
(
@
Y
);
DROP
DATABASE
init_file
;
--
echo
ok
--
echo
end
of
4.1
tests
#
...
...
sql/ha_ndbcluster.cc
View file @
9660ea64
...
...
@@ -8534,7 +8534,6 @@ pthread_handler_t ndb_util_thread_func(void *arg __attribute__((unused)))
goto
ndb_util_thread_fail
;
thd
->
init_for_queries
();
thd
->
version
=
refresh_version
;
thd
->
set_time
();
thd
->
main_security_ctx
.
host_or_ip
=
""
;
thd
->
client_capabilities
=
0
;
my_net_init
(
&
thd
->
net
,
0
);
...
...
sql/ha_ndbcluster_binlog.cc
View file @
9660ea64
...
...
@@ -3496,7 +3496,6 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
thd
->
command
=
COM_DAEMON
;
thd
->
system_thread
=
SYSTEM_THREAD_NDBCLUSTER_BINLOG
;
thd
->
version
=
refresh_version
;
thd
->
set_time
();
thd
->
main_security_ctx
.
host_or_ip
=
""
;
thd
->
client_capabilities
=
0
;
my_net_init
(
&
thd
->
net
,
0
);
...
...
sql/sql_class.cc
View file @
9660ea64
...
...
@@ -357,6 +357,7 @@ void THD::init(void)
void
THD
::
init_for_queries
()
{
set_time
();
ha_enable_transaction
(
this
,
TRUE
);
reset_root_defaults
(
mem_root
,
variables
.
query_alloc_block_size
,
...
...
sql/sql_parse.cc
View file @
9660ea64
...
...
@@ -1210,7 +1210,6 @@ pthread_handler_t handle_one_connection(void *arg)
thd
->
version
=
refresh_version
;
thd
->
proc_info
=
0
;
thd
->
command
=
COM_SLEEP
;
thd
->
set_time
();
thd
->
init_for_queries
();
if
(
sys_init_connect
.
value_length
&&
!
(
sctx
->
master_access
&
SUPER_ACL
))
...
...
@@ -1361,6 +1360,7 @@ pthread_handler_t handle_bootstrap(void *arg)
mode we have only one thread.
*/
thd
->
query_id
=
next_query_id
();
thd
->
set_time
();
mysql_parse
(
thd
,
thd
->
query
,
length
);
close_thread_tables
(
thd
);
// Free tables
if
(
thd
->
is_fatal_error
)
...
...
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