jeremydaly / data-api-client

A "DocumentClient" for the Amazon Aurora Serverless Data API
MIT License
440 stars 60 forks source link

Fix type name handling #124

Open jeff-summer opened 1 year ago

jeff-summer commented 1 year ago

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.

Linking to pull #117