Skip to content
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

mysql 5.7 without view check_constraints #412

Open
travelliu opened this issue May 18, 2023 · 0 comments
Open

mysql 5.7 without view check_constraints #412

travelliu opened this issue May 18, 2023 · 0 comments

Comments

@travelliu
Copy link

There is a check constraint after mySQL 8.0, and the previous version did not have view check_constraints

my:root@127/mtkd=> \d task_result_details
error: failed to describe BASE TABLE mtkd.task_result_details: failed to list constraints: Error 1109 (42S02): Unknown table 'check_constraints' in information_schema
my:root@127/mtkd=> desc task_result_details;
    Field    |     Type     | Null | Key | Default |     Extra      
-------------+--------------+------+-----+---------+----------------
 id          | bigint(20)   | NO   | PRI |         | auto_increment 
 task_id     | bigint(20)   | YES  | MUL |         |  
 run_id      | bigint(20)   | YES  |     |         |  
 type_name   | varchar(20)  | YES  |     |         |  
 object_id   | varchar(50)  | YES  |     |         |  
 src_name    | varchar(200) | YES  |     |         |  
 tgt_name    | varchar(200) | YES  |     |         |  
 status      | varchar(20)  | YES  |     |         |  
 start_time  | bigint(20)   | YES  |     |         |  
 finish_time | bigint(20)   | YES  |     |         |  
 use_time    | bigint(20)   | YES  |     |         |  
 src_sql     | mediumblob   | YES  |     |         |  
 tgt_sql     | mediumblob   | YES  |     |         |  
 row_num     | bigint(20)   | YES  |     |         |  
 target_num  | bigint(20)   | YES  |     |         |  
 ignore_num  | bigint(20)   | YES  |     |         |  
 source_diff | bigint(20)   | YES  |     |         |  
 target_diff | bigint(20)   | YES  |     |         |  
 size        | bigint(20)   | YES  |     |         |  
 reason      | mediumblob   | YES  |     |         |  
 reason1     | mediumblob   | YES  |     |         |  
 reason2     | mediumblob   | YES  |     |         |  
 warning     | mediumblob   | YES  |     |         |  
(23 rows)

my:root@127/mtkd=> select version();
 version()  
------------
 5.7.32-log 
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant