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

Syntax error in SQL statement with psycopg2 #8

Open
ciusji opened this issue Nov 20, 2022 · 0 comments
Open

Syntax error in SQL statement with psycopg2 #8

ciusji opened this issue Nov 20, 2022 · 0 comments
Assignees

Comments

@ciusji
Copy link
Owner

ciusji commented Nov 20, 2022

envs: (MacOS m1 chip)
python3.9
psycopg2-binary==2.8.6

Guinsoo:
mode: postgresql

Error details:
2022-11-20 10:58:40,006:ERROR:flask_appbuilder.security.sqla.manager:Add Role: (psycopg2.errors.SyntaxErrorOrAccessRuleViolation) Syntax error in SQL statement "INSERT INTO ab_role (id, name) VALUES (nextval('ab_role_id_seq'), E'Admin') []RETURNING ab_role.id"; SQL statement:
INSERT INTO ab_role (id, name) VALUES (nextval('ab_role_id_seq'), E'Admin') RETURNING ab_role.id [42000-219]
DETAIL: org.guinsoo.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "INSERT INTO ab_role (id, name) VALUES (nextval('ab_role_id_seq'), E'Admin') [
]RETURNING ab_role.id"; SQL statement:
INSERT INTO ab_role (id, name) VALUES (nextval('ab_role_id_seq'), E'Admin') RETURNING ab_role.id [42000-219]

[SQL: INSERT INTO ab_role (id, name) VALUES (nextval('ab_role_id_seq'), %(name)s) RETURNING ab_role.id]
[parameters: {'name': 'Admin'}]
(Background on this error at: http://sqlalche.me/e/13/f405)

@ciusji ciusji self-assigned this Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant