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

DataBase: "You have an error in your SQL syntax" when adding a comment. #2

Closed
Maker-Mark opened this issue Aug 13, 2019 · 2 comments
Closed
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed important

Comments

@Maker-Mark
Copy link
Collaborator

I am implementing the following feature, and am getting a SQL syntax response. See screenshots below.
image

image

@Maker-Mark Maker-Mark added bug Something isn't working help wanted Extra attention is needed important labels Aug 13, 2019
@Maker-Mark Maker-Mark pinned this issue Aug 13, 2019
@Maker-Mark
Copy link
Collaborator Author

INSERT INTO comments (text, postId, parentId, userId) VALUES ('Okay listen here, I will not be buying the textbook,
-BOB', 1, NULL, (select id from users where username = 'BOB'))
127.0.0.1 - - [13/Aug/2019 17:15:44] "POST /add-comment/ HTTP/1.1" 200 -

@chalshaff12
Copy link

Fixed and fixed!

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

No branches or pull requests

2 participants