Unexpected parsing error in MySQL node
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, mysql
- Lĩnh vực
- databases
Hướng nghiên cứu
Bắt đầu với node MySQL và tái hiện truy vấn INSERT đã được báo cáo bằng định nghĩa bảng được cung cấp cùng các chi tiết về môi trường MariaDB. So sánh truy vấn chạy trong các công cụ khác với nội dung node gửi đi; hoàn tất khi cùng một truy vấn hợp lệ chạy mà không có lỗi cú pháp SQL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 612
- Merge trung bình
- 13 giờ 57 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của node-red/node-red-nodes
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
node-red/node-red-nodes#1142 · 11 bình luận ·
-
XMPP node issue (follow #1135) Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
node-red/node-red-nodes#1141 · 15 bình luận ·
-
email-in node crashed node-red Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
node-red/node-red-nodes#1130 · 4 bình luận ·
-
dependencies
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
node-red/node-red-nodes#1121 · 5 bình luận ·
-
upstream
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
node-red/node-red-nodes#1116 · 5 bình luận ·
Tất cả issue của node-red/node-red-nodes
Issue tương tự
-
Update HugeIcons library Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
antfu-collective/icones#398 ·
-
ECmail.com Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
wesbos/burner-email-providers#554 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
components-web-app/docs#92 ·