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

Cannot render erDiagram when field name starts with pk #3193

Closed
fuelen opened this issue Jul 2, 2022 · 1 comment
Closed

Cannot render erDiagram when field name starts with pk #3193

fuelen opened this issue Jul 2, 2022 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@fuelen
Copy link

fuelen commented Jul 2, 2022

Describe the bug
Cannot render erDiagram when field name starts with pk, pkce for example

To Reproduce
Steps to reproduce the behavior:

  1. open https://mermaid.live
  2. paste this code
erDiagram
  test {
    uuid id PK
    text pkce
  }

Observe the following error:

Parse error on line 4:
...uuid id PK    text pkce  }
----------------------^
Expecting 'ATTRIBUTE_WORD', got 'ATTRIBUTE_KEY'

Expected behavior
allow fields which start with pk

@fuelen fuelen added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 2, 2022
@fuelen
Copy link
Author

fuelen commented Jul 2, 2022

Seems like it is already fixed here #3168

@fuelen fuelen closed this as completed Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant