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

Table title is not included. #379

Open
sungjun-hwang-twolinecode opened this issue Oct 11, 2024 · 1 comment
Open

Table title is not included. #379

sungjun-hwang-twolinecode opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sungjun-hwang-twolinecode

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Right click
  2. Select import
  3. Select Schema Sql
  4. Select SQL file
  5. Check table contents
  6. You can see that the table title has not been entered.

used sql

CREATE TABLE `role` (
  `id` int NOT NULL AUTO_INCREMENT,
  `key` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `description` text,
  PRIMARY KEY (`id`,`key`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='role';

Expected behavior
Appears with table title included

Screenshots
If applicable, add screenshots to help explain your problem.
image

VSCode (please complete the following information):

  • OS: windows 10

  • VSCode version:
    Version: 1.93.1 (user setup)
    Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
    Date: 2024-09-11T17:20:05.685Z
    Electron: 30.4.0
    ElectronBuildId: 10073054
    Chromium: 124.0.6367.243
    Node.js: 20.15.1
    V8: 12.4.254.20-electron.0
    OS: Windows_NT x64 10.0.19045

  • Extension Version: v2.0.1

@sungjun-hwang-twolinecode sungjun-hwang-twolinecode added the bug Something isn't working label Oct 11, 2024
@dineug
Copy link
Owner

dineug commented Oct 16, 2024

Comments are not part of a standardized syntax, so it's difficult to support them. Check the supported syntax.

https://docs.erd-editor.io/docs/guide/guides/file-import-export#schema-sql
https://github.com/dineug/erd-editor/tree/main/packages/schema-sql-parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants