You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package versions and database engine type (please complete the following information):
Database Engine: [postgres]
TypeORM Version: [e.g. 0.3.6]
Driver Version [e.g. 2.4.2]
Describe the bug
ERROR: operator does not exist: character varying = uuid
An error occurs if you generate a variable using the uuid library and use it in a query, in a field of type character varying. I think this is due to the fact that formatOptions is enabled in the settings. It casts character varying to uuid, but the field in the table is character varying
To Reproduce
@Entity()
class SomeClass {
@Column()
public value: string
}
-----------------------------------
const value = uuidv4()
this.repository.findOne({
where: {
value
}
})
The text was updated successfully, but these errors were encountered:
Hello.
Were you every able to resolve this issue? Some had the same issue here and they downgraded it to 2.0.6. Is there any other way to go about this?
Package versions and database engine type (please complete the following information):
Describe the bug
ERROR: operator does not exist: character varying = uuid
An error occurs if you generate a variable using the uuid library and use it in a query, in a field of type character varying. I think this is due to the fact that formatOptions is enabled in the settings. It casts character varying to uuid, but the field in the table is character varying
To Reproduce
The text was updated successfully, but these errors were encountered: