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 retrieving JSON data as 'json?' type when entry is null #4170

Open
sanduninduwara opened this issue Mar 7, 2023 · 0 comments
Open
Labels
module/postgresql Team/DIU Data, IO, and Util packages related issues Type/Bug

Comments

@sanduninduwara
Copy link

Description:
When there is a PostgreSQL database table entry that includes a JSON-type record(This entry can be null). When the entry is null and trying to retrieve the JSON data as a 'json?' type, It gives an error message. However, when that entry is retrieved as a 'string?' type, it won't encounter any errors.

Error message:
error: Error when iterating through the SQL result. null

OS, DB, other environment details and versions:
database connector ballerinax/postgresql

@niveathika niveathika added Team/DIU Data, IO, and Util packages related issues module/postgresql labels Mar 7, 2023
@niveathika niveathika self-assigned this Mar 16, 2023
@niveathika niveathika moved this from BackLog to In Progress in Ballerina Team Main Board Mar 16, 2023
@kaneeldias kaneeldias moved this from In Progress to BackLog in Ballerina Team Main Board Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/postgresql Team/DIU Data, IO, and Util packages related issues Type/Bug
Projects
Status: BackLog
Development

No branches or pull requests

2 participants