From 4f1a07bfac394321d41b24143e2c9edb08766fae Mon Sep 17 00:00:00 2001 From: neko-neko Date: Wed, 6 Jan 2021 18:45:14 +0900 Subject: [PATCH] Add ltree column support --- src/drivers/PostgresDriver.ts | 1 + test/integration/entityTypes/postgres/entity/Post.ts | 3 +++ 2 files changed, 4 insertions(+) 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; }