bug: Empty nullable fields return as true when queried from RDS Postgres #11871
Labels
aws:rds
Amazon Relational Database Service
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
When i return an object from a table with a nullable column, if that records value is null... the RDS Data API appears to return TRUE.
Expected Behavior
The column should be set to NULL.
How are you starting LocalStack?
With the
localstack
scriptSteps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)DISABLE_CORS_CHECKS=1 DEBUG=1 localstack start
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
Add a table such as this to Postgres v11 or v13 on LocalStack.
Add data where will_return_true_if_empty=[], will_return_true_if_empty=['text'], will_return_true_if_empty=NULL
Call this query 'SELECT * FROM my_table;'
Observe that the formatted records have TRUE for the null value record.
Environment
Anything else?
Current workaround is the inspect the table schema and map the column value back. This does not occur in my prod/dev deploys in AWS. The database, when queried directly has the correct values.
The text was updated successfully, but these errors were encountered: