-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO: R&D self-test DDL #125
Comments
DDLfailed:× ; pass:✓ 1. DATABASE1.1. CREATE DATABASE [✓]
1.2. SHOW DATABASE [✓]
1.3. DROP DATABASE [✓?]
note: in some abnormal senario as below, TODO:
2. TABLE2.1. CREATE TABLE [✓]
2.2. CTAS [✓]
2.3. ALTER TABLE [ ]2.4. TRUNCATE TABLE [✓]
2.5. SHOW TABLES [✓]
2.6. SHOW CREATE TABLE [✓]mysql> show create table account;
2.7. DROP TABLE [✓]
2.8. 重组表 [ ]2.9. CREATE TABLE LIKE [✓ ]
3. VIEW3.1. CREATE VIEW [✓]3.2. SHOW CREATE VIEW [✓]3.3. ALTER VIEW [✓]3.4. DROP VIEW [✓]4. TRIGGER4.1. CREATE TRIGGER [✓]4.2. SHOW CREATE TRIGGER [✓]4.3. SHOW TRIGGERS [✓]4.4. DROP TRIGGER [✓]5. PROCEDURE5.1. CREATE PROCEDURE [✓]5.2. ALTER PROCEDURE [✓]5.3. DROP PROCEDURE [✓]5.4. SHOW CREATE PROCEDURE[✓]6. FUNCTION6.1. CREATE FUNCTION [✓]6.2. ALTER FUNCTION [✓]6.3. DROP FUNCTION [✓]6.5. SHOW CREATE FUNCTION [✓] |
alter tablealter table t_test add column ex_column int [✓]
alter table t_test drop column ex_column [✓]
alter table t_test rename t_test1 [✓]
alter table t_test modify [×]alter table t_test modify first_name varchar(5); [TBD] |
view
|
TRIGGERCREATE TRIGGERmysql> CREATE TABLE account (acct_num INT, amount INT) ENGINE=TIANMU; mysql> CREATE TRIGGER ins_sum BEFORE INSERT ON account FOR EACH ROW SET @sum = @ sum + NEW.amount; mysql> SET @sum = 0; mysql> INSERT INTO account VALUES(137,14),(141,1937),(97,100); mysql> SELECT @sum AS 'Total amount inserted'; SHOW CREATE TRIGGERmysql> show create trigger ins_sum; SHOW TRIGGERSmysql> show triggers; DROP TRIGGERmysql> drop trigger ins_sum; |
PROCEDURE
|
FUNCTION
|
From #108
The text was updated successfully, but these errors were encountered: