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

Error creating index on MySQL 5.7 #1204

Closed
iromli opened this issue Apr 15, 2022 · 0 comments · Fixed by #1205
Closed

Error creating index on MySQL 5.7 #1204

iromli opened this issue Apr 15, 2022 · 0 comments · Fixed by #1205
Assignees
Labels
comp-docker-jans-persistence-loader kind-bug Issue or PR is a bug in existing functionality

Comments

@iromli
Copy link
Contributor

iromli commented Apr 15, 2022

Describe the bug

When using MySQL 5.7 (and its derivative distribution, i.e. AWS Aurora MySQL 5.7), creating index with CAST query triggers SQL syntax error, for example:

sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(CAST(clnId->'$.v' AS CHAR(128) ARRAY)))' at line 1")
[SQL: ALTER TABLE `jansCibaReq` ADD INDEX `jansCibaReq_json_1` ((CAST(clnId->'$.v' AS CHAR(128) ARRAY)))]

To Reproduce
Steps to reproduce the behavior:

  1. Deploy MySQL 5.7 container
  2. Set CN_PERSISTENCE_TYPE environment variable to sql
  3. Deploy janssenproject/persistence-loader container
  4. See error (as mentioned above) on container's logs

Expected behavior

Error should not be thrown.

Additional context

The error only occurs in MySQL 5.7.x

@iromli iromli added kind-bug Issue or PR is a bug in existing functionality comp-docker-jans-persistence-loader labels Apr 15, 2022
@iromli iromli linked a pull request Apr 15, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-docker-jans-persistence-loader kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants