diff --git a/src/drivers/PostgresDriver.ts b/src/drivers/PostgresDriver.ts index 3a84f95..4f298d9 100644 --- a/src/drivers/PostgresDriver.ts +++ b/src/drivers/PostgresDriver.ts @@ -428,6 +428,7 @@ export default class PostgresDriver extends AbstractDriver { case "hstore": case "geography": case "geometry": + case "ltree": ret.sqlType = udtName; break; default: diff --git a/test/integration/entityTypes/postgres/entity/Post.ts b/test/integration/entityTypes/postgres/entity/Post.ts index be2d592..0afd0b4 100644 --- a/test/integration/entityTypes/postgres/entity/Post.ts +++ b/test/integration/entityTypes/postgres/entity/Post.ts @@ -189,4 +189,7 @@ export class Post { @Column("geography") geography: string; + + @Column("ltree") + ltree: string; }