Open badmintoncryer opened 1 month ago
Looks like grantPrivileges() > executeStatement() is failing while executing GRANT ${actions.join(', ')} ON ${tableName} TO ${username}
.
Syntax for GRANT allows to specify comma separated actions (SELECT, UPDATE,...
, etc.) ON [ TABLE ] table_name
where TABLE keyword is optional.
Table name can use:
-
.In the issue, the error is syntax error at or near "-" in context "SELECT ON clustereb0386a7-"
. So looks like table name somehow contains -
. Hence, the database-query-provider should either be updated to use delimited identifiers, OR, integration test should make sure not to use illegal characters in table names.
Describe the bug
There is an
integ.database.ts
integ test, but this test cannot actually be deployed to AWS.Generated template file is here.
Regression Issue
Last Known Working CDK Version
2.160.0
Expected Behavior
The integ test should be able to deploy.
Current Behavior
Failed to deploy.
Reproduction Steps
You can perform this integration test as follows.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.160.0
Framework Version
No response
Node.js Version
v22.9.0
OS
macOS
Language
TypeScript
Language Version
No response
Other information
No response