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

fix(pg): handle pg engine lowercase typeName #117

Open
wants to merge 1 commit into
base: aws-sdk-v3-migration
Choose a base branch
from

Conversation

calvin-cdev
Copy link

aurora serverless with postgresql returns typeName as lowercase. because of this, the function formatRecordValue does not function properly for pg responses.

to fix, I cast the typeName to uppercase at the start of the function, storing it in a new const standardizedTypeName.
added a test case to cover this issue.

@calvin-cdev
Copy link
Author

calvin-cdev commented Jul 1, 2022

@jeremydaly any chance you'd be okay with me rebasing this onto main so we can get it in? i'm currently having to write custom logic to resolve generated date strings into date objects and i'd rather have the driver do it as expected.

@calvin-cdev calvin-cdev changed the base branch from aws-sdk-v3-migration to main August 10, 2022 16:17
@calvin-cdev calvin-cdev changed the base branch from main to aws-sdk-v3-migration August 10, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant