Closed jordenLwq closed 6 years ago
请问是什么问题?
mysql 5.7 表api_list#method_description 插入错误
jorden.li@aliyun.com
发件人: Yenan Wang 发送时间: 2018-10-15 18:17 收件人: ctripcorp/dal 抄送: jordenLwq; Author 主题: Re: [ctripcorp/dal] 在初始化数据库的时候有问题 api_list 这个表 (#38) 请问是什么问题? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
能否提供异常信息,我在5.6的server上无法重现,或者是不是server端参数的差异造成的?
解决办法:
CREATE TABLE
api_list
(id
INT (11) NOT NULL AUTO_INCREMENT ,language
VARCHAR(45) NULL DEFAULT NULL ,db_type
VARCHAR(45) NULL DEFAULT NULL ,crud_type
VARCHAR(45) NULL DEFAULT NULL ,method_declaration
VARCHAR(200) NULL DEFAULT NULL ,method_description
TEXT NULL ,sp_type
VARCHAR(45) NULL DEFAULT NULL ,PRIMARY KEY (id
) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;