gpt4 book ai didi

mysql - 工作台编辑器警告虚假错误

转载 作者:行者123 更新时间:2023-11-30 22:24:06 27 4
gpt4 key购买 nike

我还没有找到这个问题的答案,所以我在这里发帖。我会第一个承认我可能没有使用正确的术语进行搜索。

我在运行 Yosemite 的 Mac 上使用 MySQL Workbench 6.3 Community Edition 连接到 5.6.26 MySQL Community Server 的本地实例。

我的问题是某些命令在指示错误的行上带有红色下划线和 'x',但它们执行时没有错误。这是一个例子:

ALTER TABLE products MODIFY created_ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP;

单词 "DEFAULT" 带有红色下划线,将鼠标悬停在它上面会查看消息 "Syntax error: unexpected 'DEFAULT' (default)"。但是,该语句执行时没有错误。

这是表的 DDL:

CREATE TABLE products (
product_id INT,
prod_name VARCHAR(30),
prod_weight DECIMAL(6,3),
created_ts TIMESTAMP
);

如有任何帮助,我们将不胜感激。

Workbench showing underlined text indicating error

最佳答案

这是 MySQL Workbench 6.3.5 中修复的错误:bug report link

Posted by developer: Fixed as of the upcoming MySQL Workbench 6.3.5 release, and here's the changelog entry:

The SQL parser and grammar was updated; some queries would emit bogus errors.

Thank you for the bug report.

关于mysql - 工作台编辑器警告虚假错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35819770/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com