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
8adf572c
Commit
8adf572c
authored
Apr 04, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge of tests that were split out of other test files
parent
2f0bb42d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
18 deletions
+34
-18
mysql-test/r/ctype_ucs_binlog.result
mysql-test/r/ctype_ucs_binlog.result
+11
-4
mysql-test/r/timezone_grant.result
mysql-test/r/timezone_grant.result
+5
-3
mysql-test/r/user_var-binlog.result
mysql-test/r/user_var-binlog.result
+14
-7
mysql-test/t/ctype_ucs_binlog.test
mysql-test/t/ctype_ucs_binlog.test
+1
-1
mysql-test/t/timezone_grant.test
mysql-test/t/timezone_grant.test
+2
-2
mysql-test/t/user_var-binlog.test
mysql-test/t/user_var-binlog.test
+1
-1
No files found.
mysql-test/r/ctype_ucs_binlog.result
View file @
8adf572c
...
...
@@ -3,13 +3,20 @@ create table t2 (c char(30)) charset=ucs2;
set @v=convert('abc' using ucs2);
reset master;
insert into t2 values (@v);
show binlog events from
79
;
Log_name Pos Event_type Server_id
Orig
_log_pos Info
master-bin.000001
79 User var 1 79
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001 1
19 Query 1 119
use `test`; insert into t2 values (@v)
show binlog events from
98
;
Log_name Pos Event_type Server_id
End
_log_pos Info
master-bin.000001
98 User var 1 138
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001 1
38 Query 1 227
use `test`; insert into t2 values (@v)
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
ROLLBACK;
SET @`v`:=_ucs2 0x006100620063 COLLATE `ucs2_general_ci`;
use test;
SET TIMESTAMP=10000;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1;
SET @@session.sql_mode=0;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8;
insert into t2 values (@v);
ROLLBACK;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
drop table t2;
mysql-test/r/timezone_grant.result
View file @
8adf572c
...
...
@@ -20,9 +20,9 @@ convert_tz(b, 'Europe/Moscow', 'UTC')
update t1, t2 set t1.b = convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC')
where t1.a = t2.c and t2.d = (select max(d) from t2);
select * from mysql.time_zone_name;
ERROR 42000:
Access denied for user 'mysqltest_1'@'localhost' to database 'mysql
'
ERROR 42000:
SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name
'
select Name, convert_tz('2004-10-21 19:00:00', Name, 'UTC') from mysql.time_zone_name;
ERROR 42000:
Access denied for user 'mysqltest_1'@'localhost' to database 'mysql
'
ERROR 42000:
SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name
'
delete from mysql.db where user like 'mysqltest\_%';
flush privileges;
grant all privileges on test.t1 to mysqltest_1@localhost;
...
...
@@ -36,7 +36,9 @@ set time_zone= '+00:00';
set time_zone= 'Europe/Moscow';
select convert_tz('2004-11-31 12:00:00', 'Europe/Moscow', 'UTC');
convert_tz('2004-11-31 12:00:00', 'Europe/Moscow', 'UTC')
2004-12-01 09:00:00
NULL
Warnings:
Warning 1292 Truncated incorrect datetime value: '2004-11-31 12:00:00'
select convert_tz(b, 'Europe/Moscow', 'UTC') from t1;
convert_tz(b, 'Europe/Moscow', 'UTC')
update t1, t2 set t1.b = convert_tz('2004-11-30 12:00:00', 'Europe/Moscow', 'UTC')
...
...
mysql-test/r/user_var-binlog.result
View file @
8adf572c
...
...
@@ -6,20 +6,27 @@ INSERT INTO t1 VALUES(@`a b`);
set @var1= "';aaa";
SET @var2=char(ascii('a'));
insert into t1 values (@var1),(@var2);
show binlog events from
79
;
Log_name Pos Event_type Server_id
Orig
_log_pos Info
master-bin.000001
79 User var 1 7
9 @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 1
20 Query 1 120
use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001
184 User var 1 184
@`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 2
26 User var 1 226
@`var2`=_latin1 0x61 COLLATE latin1_swedish_ci
master-bin.000001
264 Query 1 264
use `test`; insert into t1 values (@var1),(@var2)
show binlog events from
98
;
Log_name Pos Event_type Server_id
End
_log_pos Info
master-bin.000001
98 User var 1 13
9 @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 1
39 Query 1 231
use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001
231 User var 1 273
@`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 2
73 User var 1 311
@`var2`=_latin1 0x61 COLLATE latin1_swedish_ci
master-bin.000001
311 Query 1 411
use `test`; insert into t1 values (@var1),(@var2)
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
ROLLBACK;
SET @`a b`:=_latin1 0x68656C6C6F COLLATE `latin1_swedish_ci`;
use test;
SET TIMESTAMP=10000;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1;
SET @@session.sql_mode=0;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8;
INSERT INTO t1 VALUES(@`a b`);
SET @`var1`:=_latin1 0x273B616161 COLLATE `latin1_swedish_ci`;
SET @`var2`:=_latin1 0x61 COLLATE `latin1_swedish_ci`;
SET TIMESTAMP=10000;
insert into t1 values (@var1),(@var2);
ROLLBACK;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
drop table t1;
mysql-test/t/ctype_ucs_binlog.test
View file @
8adf572c
...
...
@@ -8,7 +8,7 @@ create table t2 (c char(30)) charset=ucs2;
set
@
v
=
convert
(
'abc'
using
ucs2
);
reset
master
;
insert
into
t2
values
(
@
v
);
show
binlog
events
from
79
;
show
binlog
events
from
98
;
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# absolutely need variables names to be quoted and strings to be
# escaped).
...
...
mysql-test/t/timezone_grant.test
View file @
8adf572c
...
...
@@ -28,9 +28,9 @@ select convert_tz(b, 'Europe/Moscow', 'UTC') from t1;
update
t1
,
t2
set
t1
.
b
=
convert_tz
(
'2004-10-21 19:00:00'
,
'Europe/Moscow'
,
'UTC'
)
where
t1
.
a
=
t2
.
c
and
t2
.
d
=
(
select
max
(
d
)
from
t2
);
# But still these two statements should not work:
--
error
1
044
--
error
1
142
select
*
from
mysql
.
time_zone_name
;
--
error
1
044
--
error
1
142
select
Name
,
convert_tz
(
'2004-10-21 19:00:00'
,
Name
,
'UTC'
)
from
mysql
.
time_zone_name
;
#
...
...
mysql-test/t/user_var-binlog.test
View file @
8adf572c
...
...
@@ -10,7 +10,7 @@ INSERT INTO t1 VALUES(@`a b`);
set
@
var1
=
"';aaa"
;
SET
@
var2
=
char
(
ascii
(
'a'
));
insert
into
t1
values
(
@
var1
),(
@
var2
);
show
binlog
events
from
79
;
show
binlog
events
from
98
;
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# absolutely need variables names to be quoted and strings to be
# escaped).
...
...
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