Closed mikkom closed 2 years ago
@jeremydaly i was just looking at this and you merged it while i was reading :laughing: thanks for this package!!
@jeremydaly it looks like when you merged main into this before merging the pr, you dropped the typeName.toUpperCase()
change. I can confirm that with the postgres data-api, the cast to upper case is necessary for the formatRecordValue
function to have any effect. I put a log line in the function, console.log(typeName)
, and all the logs are showing typeName
as lowercase.
Thanks @calvin-summer. I'm getting ready to publish two new versions, one with a few fixes to v1.x and then v2.0 with the AWS SDK v3 support. I'll look at this as well.
@jeremydaly I just brought this up in an issue with the orm driver package that I use (which uses your data-api-client). I wasn't sure if this should be fixed here or in consumers, although I suspect it should be fixed here, since one would expect the pg
engine option to be fully compatible. I'd be happy to open a PR later with the change.
That'd be great. Please PR against the aws-sdk-v3-migration branch as v1 will be deprecated soon.
@jeremydaly opened a pr #117
This change fixes the
deserializeDate
format option functionality when using Aurora PostgreSQL. From there the type names arrive in lowercase and you also have thetimestamptz
abbreviation fortimestamp with time zone
.