-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
cannot insert array with PostgreSQL #119
Comments
@theDevelopper |
FYI, for those Python/boto3 users out there, I do not believe boto3 yet supports this: boto/boto3#2272. So you will run the chance of this working correctly locally but breaking upon deploy. I have taken to inserting arrays to Postgres as strings and explicitly casting them in the SQL statement. |
@theDevelopper
You use aws-sdk. But, aws-sdk doesn't support array parameters. I think the feature is priority low. |
@theDevelopper |
Describe the bug
Using local-data-api 0.6.7 with PostgreSQL I get an error when trying to pass an array as parameters in AWS.RDSDataService function executeStatement using JavaScript.
Postgres supposts Arrays as data type and RDSDataService does as well. But using arrays with local-data-api seems to not be supported as I get the following error in the docker logs:
To Reproduce
Steps to reproduce the behavior:
col
of typeTEXT[]
CREATE TABLE test ( col TEXT[] )
Expected behavior
a new entry in table
test
is created with the array['a', 'b']
as value for columncol
.Additional context
AWS documentation: https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_ExecuteStatement.html
The text was updated successfully, but these errors were encountered: