From afc7d87dc1cd387793c8088e8fb1c8468763dbe1 Mon Sep 17 00:00:00 2001 From: Chiri Vulpes Date: Thu, 26 Dec 2024 17:40:47 +1300 Subject: [PATCH] Also expect sql`` in plain sql functions --- src/statements/function/CreateOrReplaceFunction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/statements/function/CreateOrReplaceFunction.ts b/src/statements/function/CreateOrReplaceFunction.ts index 0c9a4fc..fe4b6db 100644 --- a/src/statements/function/CreateOrReplaceFunction.ts +++ b/src/statements/function/CreateOrReplaceFunction.ts @@ -33,8 +33,8 @@ export default class CreateOrReplaceFunction { - this.code = sql; + public sql (sql: Sql): CreateOrReplaceFunction { + this.code = sql["asRawSql"]; this.lang = "SQL"; // eslint-disable-next-line @typescript-eslint/no-unsafe-return return this as any;