mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Improved warning "xxx is not BASE TABLE/SEQUENCE"
- Changed warning to "'%-.192s.%-.192s' is not of type '%s'" to make the english a bit more correct
This commit is contained in:
@ -667,7 +667,7 @@ create table t1 (a int);
|
||||
create table t1 select * from t1;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
create table t2 union = (t1) select * from t1;
|
||||
ERROR HY000: 'test.t2' is not BASE TABLE
|
||||
ERROR HY000: 'test.t2' is not of type 'BASE TABLE'
|
||||
flush tables with read lock;
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
@ -701,7 +701,7 @@ create database mysqltest;
|
||||
use mysqltest;
|
||||
create view v1 as select 'foo' from dual;
|
||||
create table t1 like v1;
|
||||
ERROR HY000: 'mysqltest.v1' is not BASE TABLE
|
||||
ERROR HY000: 'mysqltest.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
drop database mysqltest;
|
||||
create database mysqltest;
|
||||
|
@ -60,7 +60,7 @@ DROP TABLE export;
|
||||
CREATE VIEW v1 AS SELECT 1;
|
||||
CREATE TEMPORARY TABLE t1 (a INT);
|
||||
FLUSH TABLES v1 FOR EXPORT;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
FLUSH TABLES t1 FOR EXPORT;
|
||||
ERROR 42S02: Table 'test.t1' doesn't exist
|
||||
FLUSH TABLES non_existent FOR EXPORT;
|
||||
|
@ -295,16 +295,16 @@ create view v1 as select 1;
|
||||
create view v2 as select * from t1;
|
||||
create view v3 as select * from v2;
|
||||
flush table v1, v2, v3 with read lock;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
flush table v1 with read lock;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
flush table v2 with read lock;
|
||||
ERROR HY000: 'test.v2' is not BASE TABLE
|
||||
ERROR HY000: 'test.v2' is not of type 'BASE TABLE'
|
||||
flush table v3 with read lock;
|
||||
ERROR HY000: 'test.v3' is not BASE TABLE
|
||||
ERROR HY000: 'test.v3' is not of type 'BASE TABLE'
|
||||
create temporary table v1 (a int);
|
||||
flush table v1 with read lock;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
create table v1 (a int);
|
||||
flush table v1 with read lock;
|
||||
|
@ -1090,7 +1090,7 @@ t_nn CREATE TABLE `t_nn` (
|
||||
`c1` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
SHOW CREATE VIEW mysqltest2.t_nn;
|
||||
ERROR HY000: 'mysqltest2.t_nn' is not VIEW
|
||||
ERROR HY000: 'mysqltest2.t_nn' is not of type 'VIEW'
|
||||
SHOW CREATE VIEW mysqltest2.v_yy;
|
||||
View Create View character_set_client collation_connection
|
||||
v_yy CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `mysqltest2`.`v_yy` AS select `mysqltest2`.`t_nn`.`c1` AS `c1` from `mysqltest2`.`t_nn` where `mysqltest2`.`t_nn`.`c1` = 55 latin1 latin1_swedish_ci
|
||||
@ -1110,7 +1110,7 @@ t_nn CREATE TABLE `t_nn` (
|
||||
`c1` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
SHOW CREATE VIEW mysqltest2.t_nn;
|
||||
ERROR HY000: 'mysqltest2.t_nn' is not VIEW
|
||||
ERROR HY000: 'mysqltest2.t_nn' is not of type 'VIEW'
|
||||
DROP VIEW mysqltest2.v_nn;
|
||||
DROP VIEW mysqltest2.v_yn;
|
||||
DROP VIEW mysqltest2.v_ny;
|
||||
|
@ -4,7 +4,7 @@ drop table if exists t1;
|
||||
create table t1 (n int);
|
||||
create view v1 as select * from t1;
|
||||
insert delayed into v1 values (1);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
CREATE DATABASE meow;
|
||||
|
@ -629,7 +629,7 @@ INSERT INTO t3 VALUES (3), (33);
|
||||
LOCK TABLES t3 READ;
|
||||
CREATE TEMPORARY TABLE t4 (c1 INT NOT NULL) ENGINE=MERGE UNION=(t1,t2)
|
||||
INSERT_METHOD=LAST SELECT * FROM t3;
|
||||
ERROR HY000: 'test.t4' is not BASE TABLE
|
||||
ERROR HY000: 'test.t4' is not of type 'BASE TABLE'
|
||||
SELECT * FROM t4;
|
||||
ERROR HY000: Table 't4' was not locked with LOCK TABLES
|
||||
UNLOCK TABLES;
|
||||
@ -702,11 +702,11 @@ create table t2 (a int);
|
||||
insert into t1 values (0);
|
||||
insert into t2 values (1);
|
||||
create table t3 engine=merge union=(t1, t2) select * from t1;
|
||||
ERROR HY000: 'test.t3' is not BASE TABLE
|
||||
ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
|
||||
create table t3 engine=merge union=(t1, t2) select * from t2;
|
||||
ERROR HY000: 'test.t3' is not BASE TABLE
|
||||
ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
|
||||
create table t3 engine=merge union=(t1, t2) select (select max(a) from t2);
|
||||
ERROR HY000: 'test.t3' is not BASE TABLE
|
||||
ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
|
||||
drop table t1, t2;
|
||||
create table t1 (
|
||||
a double(14,4),
|
||||
@ -1176,7 +1176,7 @@ SHOW CREATE TABLE t3;
|
||||
ERROR 42S02: Table 'test.t3' doesn't exist
|
||||
CREATE TABLE t3 ENGINE=MRG_MYISAM UNION=(t1) INSERT_METHOD=LAST
|
||||
SELECT * FROM t2;
|
||||
ERROR HY000: 'test.t3' is not BASE TABLE
|
||||
ERROR HY000: 'test.t3' is not of type 'BASE TABLE'
|
||||
SHOW CREATE TABLE t3;
|
||||
ERROR 42S02: Table 'test.t3' doesn't exist
|
||||
DROP TABLE t1, t2;
|
||||
@ -3115,11 +3115,11 @@ DROP TABLE m2;
|
||||
#
|
||||
CREATE TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
|
||||
INSERT_METHOD=LAST SELECT * FROM m1;
|
||||
ERROR HY000: 'test.m2' is not BASE TABLE
|
||||
ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
|
||||
#
|
||||
CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
|
||||
INSERT_METHOD=LAST SELECT * FROM m1;
|
||||
ERROR HY000: 'test.m2' is not BASE TABLE
|
||||
ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
|
||||
#
|
||||
CREATE TABLE m2 LIKE m1;
|
||||
SHOW CREATE TABLE m2;
|
||||
@ -3519,7 +3519,7 @@ Got one of the listed errors
|
||||
#
|
||||
CREATE TEMPORARY TABLE m2 (c1 INT, c2 INT) ENGINE=MRG_MyISAM UNION=(t3,t4)
|
||||
INSERT_METHOD=LAST SELECT * FROM m1;
|
||||
ERROR HY000: 'test.m2' is not BASE TABLE
|
||||
ERROR HY000: 'test.m2' is not of type 'BASE TABLE'
|
||||
#
|
||||
CREATE TEMPORARY TABLE m2 LIKE m1;
|
||||
SHOW CREATE TABLE m2;
|
||||
|
@ -74,7 +74,7 @@ End of 4.1 tests
|
||||
create table t1(f1 int);
|
||||
create view v1 as select * from t1;
|
||||
alter table v1 rename to v2;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
End of 5.0 tests
|
||||
|
@ -4329,57 +4329,57 @@ Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
test.t2 repair status OK
|
||||
test.t3 repair status OK
|
||||
test.v1 repair Error 'test.v1' is not BASE TABLE
|
||||
test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 repair status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
test.t2 optimize status OK
|
||||
test.t3 optimize status OK
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status Table is already up to date
|
||||
test.t2 analyze status Table is already up to date
|
||||
test.t3 analyze status Table is already up to date
|
||||
test.v1 analyze Error 'test.v1' is not BASE TABLE
|
||||
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 analyze status Operation failed
|
||||
call bug13012()|
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
test.t2 repair status OK
|
||||
test.t3 repair status OK
|
||||
test.v1 repair Error 'test.v1' is not BASE TABLE
|
||||
test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 repair status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
test.t2 optimize status OK
|
||||
test.t3 optimize status OK
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status Table is already up to date
|
||||
test.t2 analyze status Table is already up to date
|
||||
test.t3 analyze status Table is already up to date
|
||||
test.v1 analyze Error 'test.v1' is not BASE TABLE
|
||||
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 analyze status Operation failed
|
||||
call bug13012()|
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
test.t2 repair status OK
|
||||
test.t3 repair status OK
|
||||
test.v1 repair Error 'test.v1' is not BASE TABLE
|
||||
test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 repair status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
test.t2 optimize status OK
|
||||
test.t3 optimize status OK
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status Table is already up to date
|
||||
test.t2 analyze status Table is already up to date
|
||||
test.t3 analyze status Table is already up to date
|
||||
test.v1 analyze Error 'test.v1' is not BASE TABLE
|
||||
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 analyze status Operation failed
|
||||
drop procedure bug13012|
|
||||
drop view v1|
|
||||
|
@ -313,7 +313,7 @@ drop trigger trg;
|
||||
ERROR HY000: Trigger does not exist
|
||||
create view v1 as select * from t1;
|
||||
create trigger trg before insert on v1 for each row set @a:=1;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
drop table t3;
|
||||
|
@ -41,7 +41,7 @@ show create view v1;
|
||||
View Create View character_set_client collation_connection
|
||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`b` + 1 AS `c` from `t1` latin1 latin1_swedish_ci
|
||||
show create view t1;
|
||||
ERROR HY000: 'test.t1' is not VIEW
|
||||
ERROR HY000: 'test.t1' is not of type 'VIEW'
|
||||
drop table t1;
|
||||
select a from v1;
|
||||
ERROR 42S22: Unknown column 'a' in 'field list'
|
||||
@ -199,7 +199,7 @@ c d
|
||||
drop view v100;
|
||||
ERROR 42S02: Unknown VIEW: 'test.v100'
|
||||
drop view t1;
|
||||
ERROR HY000: 'test.t1' is not VIEW
|
||||
ERROR HY000: 'test.t1' is not of type 'VIEW'
|
||||
drop table v1;
|
||||
ERROR 42S02: 'test.v1' is a view
|
||||
drop view v1,v2;
|
||||
@ -675,7 +675,7 @@ drop view v1;
|
||||
create table t1 (col1 int,col2 char(22));
|
||||
create view v1 as select * from t1;
|
||||
create index i1 on v1 (col1);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
CREATE VIEW v1 (f1,f2,f3,f4) AS SELECT connection_id(), pi(), current_user(), version();
|
||||
@ -1061,7 +1061,7 @@ drop table t1,t2,t3;
|
||||
create table t1 (s1 int);
|
||||
create view v1 as select * from t1;
|
||||
handler v1 open as xx;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
create table t1(a int);
|
||||
@ -2445,28 +2445,28 @@ CREATE TABLE t1(id INT);
|
||||
CREATE VIEW v1 AS SELECT id FROM t1;
|
||||
OPTIMIZE TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
ANALYZE TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 analyze Error 'test.v1' is not BASE TABLE
|
||||
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 analyze status Operation failed
|
||||
REPAIR TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 repair Error 'test.v1' is not BASE TABLE
|
||||
test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 repair status Operation failed
|
||||
DROP TABLE t1;
|
||||
OPTIMIZE TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
ANALYZE TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 analyze Error 'test.v1' is not BASE TABLE
|
||||
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 analyze status Operation failed
|
||||
REPAIR TABLE v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 repair Error 'test.v1' is not BASE TABLE
|
||||
test.v1 repair Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 repair status Operation failed
|
||||
DROP VIEW v1;
|
||||
create definer = current_user() sql security invoker view v1 as select 1;
|
||||
@ -2920,7 +2920,7 @@ Tables_in_test
|
||||
t1
|
||||
CREATE VIEW v1 AS SELECT id FROM t1;
|
||||
DROP VIEW t1,v1;
|
||||
ERROR HY000: 'test.t1' is not VIEW
|
||||
ERROR HY000: 'test.t1' is not of type 'VIEW'
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t1
|
||||
@ -3706,7 +3706,7 @@ CREATE TABLE t1(c1 INT);
|
||||
SELECT * FROM t1;
|
||||
c1
|
||||
ALTER ALGORITHM=TEMPTABLE SQL SECURITY INVOKER VIEW t1 (c2) AS SELECT (1);
|
||||
ERROR HY000: 'test.t1' is not VIEW
|
||||
ERROR HY000: 'test.t1' is not of type 'VIEW'
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
@ -4011,7 +4011,7 @@ drop procedure p;
|
||||
CREATE TABLE t1 (a INT);
|
||||
CREATE VIEW v1 AS SELECT a FROM t1;
|
||||
ALTER TABLE v1;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
@ -5584,7 +5584,7 @@ create table t1 (a int, b int);
|
||||
create view v1 as select a+b from t1;
|
||||
alter table v1 check partition p1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 check Error 'test.v1' is not BASE TABLE
|
||||
test.v1 check Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 check status Operation failed
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
@ -245,7 +245,7 @@ Testcase 3.5.5.3:
|
||||
Create view vw3 as select f118 from tb3;
|
||||
Create trigger trg3 before INSERT
|
||||
on vw3 for each row set new.f118='s';
|
||||
ERROR HY000: 'test.vw3' is not BASE TABLE
|
||||
ERROR HY000: 'test.vw3' is not of type 'BASE TABLE'
|
||||
drop view vw3;
|
||||
|
||||
Testcase 3.5.5.4:
|
||||
|
@ -3520,12 +3520,12 @@ f1
|
||||
DROP TRIGGER tr1 ;
|
||||
SET @a:=0 ;
|
||||
CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
RENAME TABLE v1 TO v2;
|
||||
RENAME VIEW v2 TO v1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VIEW v2 TO v1' at line 1
|
||||
ALTER TABLE v2 RENAME AS v1;
|
||||
ERROR HY000: 'test.v2' is not BASE TABLE
|
||||
ERROR HY000: 'test.v2' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 RENAME AS v2;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RENAME AS v2' at line 1
|
||||
DROP TABLE IF EXISTS t1, t2 ;
|
||||
@ -3535,12 +3535,12 @@ CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );
|
||||
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(f1);
|
||||
ALTER TABLE v1 ADD PRIMARY KEY(f1);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 ADD PRIMARY KEY(f1);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD PRIMARY KEY(f1)' at line 1
|
||||
CREATE INDEX t1_idx ON t1(f3);
|
||||
CREATE INDEX v1_idx ON v1(f3);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
||||
@ -4085,9 +4085,9 @@ Drop view test.v1 ;
|
||||
Testcase 3.3.1.14
|
||||
--------------------------------------------------------------------------------
|
||||
CREATE OR REPLACE VIEW test.tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
CREATE OR REPLACE VIEW tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
|
||||
Testcase 3.3.1.15
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -245,7 +245,7 @@ Testcase 3.5.5.3:
|
||||
Create view vw3 as select f118 from tb3;
|
||||
Create trigger trg3 before INSERT
|
||||
on vw3 for each row set new.f118='s';
|
||||
ERROR HY000: 'test.vw3' is not BASE TABLE
|
||||
ERROR HY000: 'test.vw3' is not of type 'BASE TABLE'
|
||||
drop view vw3;
|
||||
|
||||
Testcase 3.5.5.4:
|
||||
|
@ -3521,12 +3521,12 @@ f1
|
||||
DROP TRIGGER tr1 ;
|
||||
SET @a:=0 ;
|
||||
CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
RENAME TABLE v1 TO v2;
|
||||
RENAME VIEW v2 TO v1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VIEW v2 TO v1' at line 1
|
||||
ALTER TABLE v2 RENAME AS v1;
|
||||
ERROR HY000: 'test.v2' is not BASE TABLE
|
||||
ERROR HY000: 'test.v2' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 RENAME AS v2;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RENAME AS v2' at line 1
|
||||
DROP TABLE IF EXISTS t1, t2 ;
|
||||
@ -3536,12 +3536,12 @@ CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );
|
||||
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(f1);
|
||||
ALTER TABLE v1 ADD PRIMARY KEY(f1);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 ADD PRIMARY KEY(f1);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD PRIMARY KEY(f1)' at line 1
|
||||
CREATE INDEX t1_idx ON t1(f3);
|
||||
CREATE INDEX v1_idx ON v1(f3);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
||||
@ -4086,9 +4086,9 @@ Drop view test.v1 ;
|
||||
Testcase 3.3.1.14
|
||||
--------------------------------------------------------------------------------
|
||||
CREATE OR REPLACE VIEW test.tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
CREATE OR REPLACE VIEW tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
|
||||
Testcase 3.3.1.15
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -245,7 +245,7 @@ Testcase 3.5.5.3:
|
||||
Create view vw3 as select f118 from tb3;
|
||||
Create trigger trg3 before INSERT
|
||||
on vw3 for each row set new.f118='s';
|
||||
ERROR HY000: 'test.vw3' is not BASE TABLE
|
||||
ERROR HY000: 'test.vw3' is not of type 'BASE TABLE'
|
||||
drop view vw3;
|
||||
|
||||
Testcase 3.5.5.4:
|
||||
|
@ -4023,12 +4023,12 @@ f1
|
||||
DROP TRIGGER tr1 ;
|
||||
SET @a:=0 ;
|
||||
CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
RENAME TABLE v1 TO v2;
|
||||
RENAME VIEW v2 TO v1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VIEW v2 TO v1' at line 1
|
||||
ALTER TABLE v2 RENAME AS v1;
|
||||
ERROR HY000: 'test.v2' is not BASE TABLE
|
||||
ERROR HY000: 'test.v2' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 RENAME AS v2;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'RENAME AS v2' at line 1
|
||||
DROP TABLE IF EXISTS t1, t2 ;
|
||||
@ -4038,12 +4038,12 @@ CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );
|
||||
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(f1);
|
||||
ALTER TABLE v1 ADD PRIMARY KEY(f1);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
ALTER VIEW v1 ADD PRIMARY KEY(f1);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD PRIMARY KEY(f1)' at line 1
|
||||
CREATE INDEX t1_idx ON t1(f3);
|
||||
CREATE INDEX v1_idx ON v1(f3);
|
||||
ERROR HY000: 'test.v1' is not BASE TABLE
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
||||
@ -4604,9 +4604,9 @@ Drop view test.v1 ;
|
||||
Testcase 3.3.1.14
|
||||
--------------------------------------------------------------------------------
|
||||
CREATE OR REPLACE VIEW test.tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
CREATE OR REPLACE VIEW tb2 AS SELECT * From tb2 LIMIT 2;
|
||||
ERROR HY000: 'test.tb2' is not VIEW
|
||||
ERROR HY000: 'test.tb2' is not of type 'VIEW'
|
||||
|
||||
Testcase 3.3.1.15
|
||||
--------------------------------------------------------------------------------
|
||||
@ -4784,7 +4784,7 @@ CREATE VIEW v2 AS Select * from test.v1;
|
||||
ERROR 42S02: Table 'test.v1' doesn't exist
|
||||
DROP VIEW IF EXISTS v2;
|
||||
Warnings:
|
||||
Note 4067 Unknown VIEW: 'test.v2'
|
||||
Note 4068 Unknown VIEW: 'test.v2'
|
||||
|
||||
Testcase 3.3.1.25
|
||||
--------------------------------------------------------------------------------
|
||||
@ -8387,7 +8387,7 @@ Call sp1() ;
|
||||
ERROR 42000: PROCEDURE test.sp1 does not exist
|
||||
Drop view if exists test.v1 ;
|
||||
Warnings:
|
||||
Note 4067 Unknown VIEW: 'test.v1'
|
||||
Note 4068 Unknown VIEW: 'test.v1'
|
||||
Drop procedure sp1 ;
|
||||
ERROR 42000: PROCEDURE test.sp1 does not exist
|
||||
|
||||
@ -22989,7 +22989,7 @@ CREATE VIEW v1 AS SELECT f1 FROM t1;
|
||||
DROP VIEW IF EXISTS v1;
|
||||
DROP VIEW IF EXISTS v1;
|
||||
Warnings:
|
||||
Note 4067 Unknown VIEW: 'test.v1'
|
||||
Note 4068 Unknown VIEW: 'test.v1'
|
||||
|
||||
Testcase 3.3.1.68
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -51,7 +51,7 @@ bar 2
|
||||
insert into marker set a = 1;
|
||||
optimize table test.v1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.v1 optimize Error 'test.v1' is not BASE TABLE
|
||||
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
|
||||
test.v1 optimize status Operation failed
|
||||
insert into marker set a = 1;
|
||||
select * from test.v1;
|
||||
|
@ -160,7 +160,7 @@ next_value min_value max_value start increment cache cycle round
|
||||
drop sequence t1;
|
||||
create table t1 (a int);
|
||||
show create sequence t1;
|
||||
ERROR HY000: 'test.t1' is not SEQUENCE
|
||||
ERROR HY000: 'test.t1' is not of type 'SEQUENCE'
|
||||
drop sequence t1;
|
||||
ERROR 42S02: 'test.t1' is not a SEQUENCE
|
||||
drop sequence if exists t1;
|
||||
|
@ -73,7 +73,7 @@ support create sequence
|
||||
connection master;
|
||||
create table t_1(id int);
|
||||
show create sequence t_1;
|
||||
ERROR HY000: 's_db.t_1' is not SEQUENCE
|
||||
ERROR HY000: 's_db.t_1' is not of type 'SEQUENCE'
|
||||
drop table t_1;
|
||||
CREATE SEQUENCE `s2` (
|
||||
`currval` bigint(21) NOT NULL COMMENT 'current value',
|
||||
|
@ -56,7 +56,7 @@ drop table t1;
|
||||
# Test for Bug#5507 "TRUNCATE should work with views"
|
||||
#
|
||||
# when it'll be fixed, the error should become 1347
|
||||
# (test.v1' is not BASE TABLE)
|
||||
# (test.v1' is not of type 'BASE TABLE')
|
||||
#
|
||||
|
||||
create table t1 (s1 int);
|
||||
|
@ -5202,7 +5202,7 @@ ER_FRM_UNKNOWN_TYPE
|
||||
rus "Файл '%-.192s' содержит неизвестный тип '%-.64s' в заголовке"
|
||||
ukr "Файл '%-.192s' має невідомий тип '%-.64s' у заголовку"
|
||||
ER_WRONG_OBJECT
|
||||
eng "'%-.192s.%-.192s' is not %s"
|
||||
eng "'%-.192s.%-.192s' is not of type '%s'"
|
||||
ger "'%-.192s.%-.192s' ist nicht %s"
|
||||
rus "'%-.192s.%-.192s' - не %s"
|
||||
ukr "'%-.192s.%-.192s' не є %s"
|
||||
|
@ -36,7 +36,7 @@
|
||||
-1
|
||||
-2
|
||||
-DROP TABLE t1;
|
||||
+ERROR HY000: 'test.t1' is not BASE TABLE
|
||||
+ERROR HY000: 'test.t1' is not of type 'BASE TABLE'
|
||||
+# ERROR: Statement ended with errno 1347, errname ER_WRONG_OBJECT (expected to succeed)
|
||||
+# ------------ UNEXPECTED RESULT ------------
|
||||
+# The statement|command finished with ER_WRONG_OBJECT.
|
||||
|
Reference in New Issue
Block a user