Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

mysql日期字段默认值是CURRENT_TIMESTAMP, 导出创表sql会变为'CURRENT_TIMESTAMP' #1391

Open
Jrohy opened this issue Aug 14, 2019 · 0 comments

Comments

@Jrohy
Copy link

Jrohy commented Aug 14, 2019

调用engine.DumpAllToFile("1.sql") 导出的sql, 当表结构日期默认值为CURRENT_TIMESTAMP, 导出的sql 会变为字符串类型'CURRENT_TIMESTAMP'值,导致用engine.ImportFile("1.sql")会无法导入

正常的创表语句:
微信截图_20190814175709

DumpAllToFile导出的有问题sql:
微信截图_20190814175855

CURRENT_TIMESTAMP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant