Unexpected parsing error in MySQL node
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, mysql
- 领域
- databases
调研方向
从 MySQL 节点开始,使用提供的表定义和 MariaDB 环境详细信息重现报告的 INSERT 查询。将其他工具中运行的查询与节点发送的内容进行比较;当同一个有效查询能够在没有 SQL 语法错误的情况下运行时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Which node are you reporting an issue on?
MySQL
What are the steps to reproduce?
Set this query as tobic and run:
INSERT INTO homeassistant.entity_attributes_import (entity_id, attribute, value) VALUES ('media_player.skynetone', 'entity_picture', '/api/media_player_proxy/media_player.skynetone?token=1452c5572b1d7c02b1530d22f002cf7f135ee1d8ef8d429772ea052922ac8f41&cache=0f2f2623bb4719af');
SQL to create the table:
CREATE TABLE
entity_attributes_import (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
entity_id varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
attribute varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
value varchar(4000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
createTime timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (id),
UNIQUE KEY entity_attribute_value (entity_id, attribute, value) USING HASH,
UNIQUE KEY attribute_value_entity (attribute, value, entity_id) USING HASH
) ENGINE = InnoDB AUTO_INCREMENT = 398 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci
What happens?
I get an error:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'media_player.skynetone', 'entity_picture', '/api/media_player_proxy/media_pla...' at line 1
What do you expect to happen?
There is no error in the syntax (afaik) and the query runs just fine from other tools (copy pasted) so it should run
Please tell us about your environment:
- Node-RED version: 3.0.2 (home assistant)
- node.js version: Unknown
- npm version: Unknown
- Platform/OS: (Home Assistant)
- Browser: (chrome)
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 610
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
node-red/node-red-nodes 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
node-red/node-red-nodes#1151 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 58/100
node-red/node-red-nodes#1142 · 11 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
node-red/node-red-nodes#1141 · 15 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
node-red/node-red-nodes#1130 · 4 条评论 ·
-
dependencies
难度 5/5 一周以上 新手友好度 25/100
node-red/node-red-nodes#1121 · 5 条评论 ·
查看 node-red/node-red-nodes 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
microsoft/playwright#43327 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/TypeScript#64758 ·
维护者通常 1 天内回复
-
needs-area-label
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
-
bug good first issue help wanted status: planned
难度 2/5 1-3 小时 新手友好度 88/100
andersthemagi/reliquary#310 ·
维护者通常 1 天内回复