Open coler-j opened 5 months ago
Workaround till then for me:
this.db.public.registerFunction({
name: "obj_description",
args: [DataType.text, DataType.text],
returns: DataType.text,
implementation: () => "test",
});
Describe the bug
TypeORM which is a very popular ORM for Node recently added the following
obj_description
function call to support table comments in https://github.com/typeorm/typeorm/pull/10613 (typeOrm v0.3.20)https://github.com/typeorm/typeorm/blob/83567f533482d0170c35e2f99e627962b8f99a08/src/driver/postgres/PostgresQueryRunner.ts#L3291
This will cause the following error during sync
Since TypeORM is a popular lib, it would be good to add support for
obj_description
or else many people will come here with the same issue.To Reproduce
pg-mem version
2.8.1