You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Deploy MySQL 5.7 container
Set CN_PERSISTENCE_TYPE environment variable to sql
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:To Reproduce
Steps to reproduce the behavior:
CN_PERSISTENCE_TYPE
environment variable tosql
janssenproject/persistence-loader
containerExpected behavior
Error should not be thrown.
Additional context
The error only occurs in MySQL 5.7.x
The text was updated successfully, but these errors were encountered: