Casting of values causes query errors
See original GitHub issueHi,
We’re using this package to connect to our Aurora serverless database cluster. For testing, we use a local Postgres database and everything works fine. The transformParameters
in the PostgresQueryTransformer
incorrectly assumes that our string (which is a valid UUID) should be cast to type uuid
. The column we’re querying is in fact a character varying
(regular string) as it does not only store UUIDs but also other strings.
Because of this incorrect assumption, we are unable to query our database when the parameter we’re using is formatted as an UUID.
Another issue is that we’ve got a column specified as @Column('json') content: SomeType;
which works fine with a regular Postgres connection, but we’re prompted with the following error when trying to insert data: ERROR: column "content" is of type json but expression is of type character varying
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:12 (9 by maintainers)
Top GitHub Comments
@seawatts I decided to remove the UUID hack as it does more harm than good. It is removed in the 2.1.0 version of the driver.
Wow thanks @ArsenyYankovsky! I’ll try it out soon and let you know. If this works I’ll be able to finally set up my serverless DB in prod 😁🚀 you’re the man!