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

DEFAULT (CURRENT_DATE())验证不通过 #645

Open
feiazifeiazi opened this issue May 9, 2024 · 3 comments
Open

DEFAULT (CURRENT_DATE())验证不通过 #645

feiazifeiazi opened this issue May 9, 2024 · 3 comments

Comments

@feiazifeiazi
Copy link

feiazifeiazi commented May 9, 2024

描述
正在使用archery,提交SQL如下:

CREATE TABLE example4 (
id INT AUTO_INCREMENT PRIMARY KEY COMMENT '主键',
date_field DATE DEFAULT (CURRENT_DATE()) COMMENT '当前日期'
) COMMENT '测试表';

实际结果
image

这个语句是可以在mysql里执行的。

是找archery还是goInception?

环境

  • 数据库: [mysql]
  • 版本: [8.0.25]
  • hanchuanchuan/goinception:v1.3.0
@feiazifeiazi feiazifeiazi changed the title DEFAULT (CURRENT_DATE())不支持吗? DEFAULT (CURRENT_DATE())验证不通过 May 9, 2024
@zmix999
Copy link

zmix999 commented May 10, 2024

这个语法goInception主分支暂不支持,或者看下我fork的分支https://gitee.com/zhoujin826/goInception

@feiazifeiazi
Copy link
Author

这个语法goInception主分支暂不支持,或者看下我fork的分支https://gitee.com/zhoujin826/goInception

你可以提交PR吗?

@zmix999
Copy link

zmix999 commented May 23, 2024

已提pr

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

2 participants