~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/r/ndb_views.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
USE test;
2
2
drop table if exists tb2 ;
3
3
create table tb2 (
4
 
f59 numeric (0) unsigned, 
5
 
f60 numeric (64) unsigned, 
6
 
f61 numeric (0) zerofill, 
7
 
f62 numeric (64) zerofill, 
8
 
f63 numeric (0) unsigned zerofill, 
9
 
f64 numeric (64) unsigned zerofill, 
10
 
f65 numeric (0,0), 
11
 
f66 numeric (63,30), 
12
 
f67 numeric (0,0) unsigned, 
13
 
f68 numeric (63,30) unsigned, 
14
 
f69 numeric (0,0) zerofill, 
15
 
f70 numeric (63,30) zerofill, 
16
 
f71 numeric (0,0) unsigned zerofill, 
17
 
f72 numeric (63,30) unsigned zerofill, 
18
 
f73 real, 
19
 
f74 real unsigned, 
20
 
f75 real zerofill, 
21
 
f76 real unsigned zerofill, 
22
 
f77 double default 7.7, 
23
 
f78 double unsigned default 7.7, 
24
 
f79 double zerofill default 7.7, 
25
 
f80 double unsigned zerofill default 8.8, 
26
 
f81 float not null default 8.8, 
27
 
f82 float unsigned not null default 8.8, 
28
 
f83 float zerofill not null default 8.8, 
29
 
f84 float unsigned zerofill not null default 8.8, 
30
 
f85 float(0) not null default 8.8, 
31
 
f86 float(23) not null default 8.8, 
32
 
f87 float(0) unsigned not null default 8.8, 
33
 
f88 float(23) unsigned not null default 8.8, 
34
 
f89 float(0) zerofill not null default 8.8, 
35
 
f90 float(23) zerofill not null default 8.8, 
36
 
f91 float(0) unsigned zerofill not null default 8.8, 
37
 
f92 float(23) unsigned zerofill not null default 8.8, 
38
 
f93 float(24) not null default 8.8, 
39
 
f94 float(53) not null default 8.8, 
40
 
f95 float(24) unsigned not null default 8.8, 
41
 
f96 float(53) unsigned not null default 8.8, 
42
 
f97 float(24) zerofill not null default 8.8, 
43
 
f98 float(53) zerofill not null default 8.8, 
44
 
f99 float(24) unsigned zerofill not null default 8.8, 
45
 
f100 float(53) unsigned zerofill not null default 8.8, 
46
 
f101 date not null default '2000-01-01', 
47
 
f102 time not null default 20, 
48
 
f103 datetime not null default '2/2/2', 
49
 
f104 timestamp not null default 20001231235959, 
50
 
f105 year not null default 2000, 
51
 
f106 year(3) not null default 2000, 
52
 
f107 year(4) not null default 2000, 
53
 
f108 enum("1enum","2enum") not null default "1enum", 
 
4
f59 numeric (0) unsigned,
 
5
f60 numeric (64) unsigned,
 
6
f61 numeric (0) zerofill,
 
7
f62 numeric (64) zerofill,
 
8
f63 numeric (0) unsigned zerofill,
 
9
f64 numeric (64) unsigned zerofill,
 
10
f65 numeric (0,0),
 
11
f66 numeric (63,30),
 
12
f67 numeric (0,0) unsigned,
 
13
f68 numeric (63,30) unsigned,
 
14
f69 numeric (0,0) zerofill,
 
15
f70 numeric (63,30) zerofill,
 
16
f71 numeric (0,0) unsigned zerofill,
 
17
f72 numeric (63,30) unsigned zerofill,
 
18
f73 real,
 
19
f74 real unsigned,
 
20
f75 real zerofill,
 
21
f76 real unsigned zerofill,
 
22
f77 double default 7.7,
 
23
f78 double unsigned default 7.7,
 
24
f79 double zerofill default 7.7,
 
25
f80 double unsigned zerofill default 8.8,
 
26
f81 float not null default 8.8,
 
27
f82 float unsigned not null default 8.8,
 
28
f83 float zerofill not null default 8.8,
 
29
f84 float unsigned zerofill not null default 8.8,
 
30
f85 float(0) not null default 8.8,
 
31
f86 float(23) not null default 8.8,
 
32
f87 float(0) unsigned not null default 8.8,
 
33
f88 float(23) unsigned not null default 8.8,
 
34
f89 float(0) zerofill not null default 8.8,
 
35
f90 float(23) zerofill not null default 8.8,
 
36
f91 float(0) unsigned zerofill not null default 8.8,
 
37
f92 float(23) unsigned zerofill not null default 8.8,
 
38
f93 float(24) not null default 8.8,
 
39
f94 float(53) not null default 8.8,
 
40
f95 float(24) unsigned not null default 8.8,
 
41
f96 float(53) unsigned not null default 8.8,
 
42
f97 float(24) zerofill not null default 8.8,
 
43
f98 float(53) zerofill not null default 8.8,
 
44
f99 float(24) unsigned zerofill not null default 8.8,
 
45
f100 float(53) unsigned zerofill not null default 8.8,
 
46
f101 date not null default '2000-01-01',
 
47
f102 time not null default 20,
 
48
f103 datetime not null default '2/2/2',
 
49
f104 timestamp not null default 20001231235959,
 
50
f105 year not null default 2000,
 
51
f106 year(3) not null default 2000,
 
52
f107 year(4) not null default 2000,
 
53
f108 enum("1enum","2enum") not null default "1enum",
54
54
f109 set("1set","2set") not null default "1set"
55
55
) engine = ndb;
56
 
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
 
56
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/ndb_tb2.txt'
 
57
into table tb2 ;
57
58
DROP DATABASE IF EXISTS test1;
58
59
CREATE DATABASE test1;
59
60
USE test1;
60
61
drop table if exists tb2 ;
61
62
create table tb2 (
62
 
f59 numeric (0) unsigned, 
63
 
f60 numeric (64) unsigned, 
64
 
f61 numeric (0) zerofill, 
65
 
f62 numeric (64) zerofill, 
66
 
f63 numeric (0) unsigned zerofill, 
67
 
f64 numeric (64) unsigned zerofill, 
68
 
f65 numeric (0,0), 
69
 
f66 numeric (63,30), 
70
 
f67 numeric (0,0) unsigned, 
71
 
f68 numeric (63,30) unsigned, 
72
 
f69 numeric (0,0) zerofill, 
73
 
f70 numeric (63,30) zerofill, 
74
 
f71 numeric (0,0) unsigned zerofill, 
75
 
f72 numeric (63,30) unsigned zerofill, 
76
 
f73 real, 
77
 
f74 real unsigned, 
78
 
f75 real zerofill, 
79
 
f76 real unsigned zerofill, 
80
 
f77 double default 7.7, 
81
 
f78 double unsigned default 7.7, 
82
 
f79 double zerofill default 7.7, 
83
 
f80 double unsigned zerofill default 8.8, 
84
 
f81 float not null default 8.8, 
85
 
f82 float unsigned not null default 8.8, 
86
 
f83 float zerofill not null default 8.8, 
87
 
f84 float unsigned zerofill not null default 8.8, 
88
 
f85 float(0) not null default 8.8, 
89
 
f86 float(23) not null default 8.8, 
90
 
f87 float(0) unsigned not null default 8.8, 
91
 
f88 float(23) unsigned not null default 8.8, 
92
 
f89 float(0) zerofill not null default 8.8, 
93
 
f90 float(23) zerofill not null default 8.8, 
94
 
f91 float(0) unsigned zerofill not null default 8.8, 
95
 
f92 float(23) unsigned zerofill not null default 8.8, 
96
 
f93 float(24) not null default 8.8, 
97
 
f94 float(53) not null default 8.8, 
98
 
f95 float(24) unsigned not null default 8.8, 
99
 
f96 float(53) unsigned not null default 8.8, 
100
 
f97 float(24) zerofill not null default 8.8, 
101
 
f98 float(53) zerofill not null default 8.8, 
102
 
f99 float(24) unsigned zerofill not null default 8.8, 
103
 
f100 float(53) unsigned zerofill not null default 8.8, 
104
 
f101 date not null default '2000-01-01', 
105
 
f102 time not null default 20, 
106
 
f103 datetime not null default '2/2/2', 
107
 
f104 timestamp not null default 20001231235959, 
108
 
f105 year not null default 2000, 
109
 
f106 year(3) not null default 2000, 
110
 
f107 year(4) not null default 2000, 
111
 
f108 enum("1enum","2enum") not null default "1enum", 
 
63
f59 numeric (0) unsigned,
 
64
f60 numeric (64) unsigned,
 
65
f61 numeric (0) zerofill,
 
66
f62 numeric (64) zerofill,
 
67
f63 numeric (0) unsigned zerofill,
 
68
f64 numeric (64) unsigned zerofill,
 
69
f65 numeric (0,0),
 
70
f66 numeric (63,30),
 
71
f67 numeric (0,0) unsigned,
 
72
f68 numeric (63,30) unsigned,
 
73
f69 numeric (0,0) zerofill,
 
74
f70 numeric (63,30) zerofill,
 
75
f71 numeric (0,0) unsigned zerofill,
 
76
f72 numeric (63,30) unsigned zerofill,
 
77
f73 real,
 
78
f74 real unsigned,
 
79
f75 real zerofill,
 
80
f76 real unsigned zerofill,
 
81
f77 double default 7.7,
 
82
f78 double unsigned default 7.7,
 
83
f79 double zerofill default 7.7,
 
84
f80 double unsigned zerofill default 8.8,
 
85
f81 float not null default 8.8,
 
86
f82 float unsigned not null default 8.8,
 
87
f83 float zerofill not null default 8.8,
 
88
f84 float unsigned zerofill not null default 8.8,
 
89
f85 float(0) not null default 8.8,
 
90
f86 float(23) not null default 8.8,
 
91
f87 float(0) unsigned not null default 8.8,
 
92
f88 float(23) unsigned not null default 8.8,
 
93
f89 float(0) zerofill not null default 8.8,
 
94
f90 float(23) zerofill not null default 8.8,
 
95
f91 float(0) unsigned zerofill not null default 8.8,
 
96
f92 float(23) unsigned zerofill not null default 8.8,
 
97
f93 float(24) not null default 8.8,
 
98
f94 float(53) not null default 8.8,
 
99
f95 float(24) unsigned not null default 8.8,
 
100
f96 float(53) unsigned not null default 8.8,
 
101
f97 float(24) zerofill not null default 8.8,
 
102
f98 float(53) zerofill not null default 8.8,
 
103
f99 float(24) unsigned zerofill not null default 8.8,
 
104
f100 float(53) unsigned zerofill not null default 8.8,
 
105
f101 date not null default '2000-01-01',
 
106
f102 time not null default 20,
 
107
f103 datetime not null default '2/2/2',
 
108
f104 timestamp not null default 20001231235959,
 
109
f105 year not null default 2000,
 
110
f106 year(3) not null default 2000,
 
111
f107 year(4) not null default 2000,
 
112
f108 enum("1enum","2enum") not null default "1enum",
112
113
f109 set("1set","2set") not null default "1set"
113
114
) engine = ndb;
114
 
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
 
115
load data infile '<MYSQLTEST_VARDIR>/std_data_ln/funcs_1/ndb_tb2.txt'
 
116
into table tb2 ;
115
117
USE test;
116
118
 
117
119
! Attention: The file with the expected results is not
3544
3546
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or REPLACE AS Select * from tb2 my_table' at line 1
3545
3547
CREATE VIEW v1 WITH CASCADED CHECK OPTION AS Select *
3546
3548
from tb2 my_table limit 50;
3547
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION AS Select *
 
3549
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASCADED CHECK OPTION AS Select *
3548
3550
from tb2 my_table limit 50' at line 1
3549
3551
CREATE VIEW v1 WITH LOCAL CHECK OPTION AS Select *
3550
3552
from tb2 my_table limit 50;
3551
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH LOCAL CHECK OPTION AS Select *
 
3553
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LOCAL CHECK OPTION AS Select *
3552
3554
from tb2 my_table limit 50' at line 1
3553
3555
SELECT * FROM tb2 my_table CREATE VIEW As v1;
3554
3556
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE VIEW As v1' at line 1
3578
3580
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHECK OPTION WITH CASCADED' at line 2
3579
3581
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
3580
3582
AS SELECT F59, F60 FROM test.tb2 my_table;
3581
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION
 
3583
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASCADED CHECK OPTION
3582
3584
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
3583
3585
CREATE OR REPLACE AS SELECT F59, F60
3584
3586
FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION;
3607
3609
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHECK OPTION WITH LOCAL' at line 2
3608
3610
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
3609
3611
AS SELECT F59, F60 FROM test.tb2 my_table;
3610
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION
 
3612
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASCADED CHECK OPTION
3611
3613
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
3612
3614
CREATE OR REPLACE AS SELECT F59, F60
3613
3615
FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION;
22494
22496
2       NULL    <-- 10 -->      t1 2
22495
22497
2       NULL    <-- 10 -->      v1 2
22496
22498
ALTER TABLE t1 CHANGE COLUMN f4 f4 CHAR(8);
 
22499
Warnings:
 
22500
Warning 1265    Data truncated for column 'f4' at row <some number>
 
22501
Warning 1265    Data truncated for column 'f4' at row <some number>
22497
22502
INSERT INTO t1 SET f1 = 3, f4 = '<-- 10 -->', report = 't1 3';
22498
22503
Warnings:
22499
22504
Warning 1265    Data truncated for column 'f4' at row 1