From 0c89b5c7d9b89b8ebfccab7e71d5a5d252e85112 Mon Sep 17 00:00:00 2001 From: remiposo <57336808+remiposo@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:51:43 +0900 Subject: [PATCH 1/2] fix: typo --- site/docs/examples/insert/0040-complex-values.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/examples/insert/0040-complex-values.js b/site/docs/examples/insert/0040-complex-values.js index 29292c59b..75510035b 100644 --- a/site/docs/examples/insert/0040-complex-values.js +++ b/site/docs/examples/insert/0040-complex-values.js @@ -7,7 +7,7 @@ const result = await db .insertInto('person') .values(({ ref, selectFrom, fn }) => ({ first_name: 'Jennifer', - last_name: sql\`>concat(\${ani}, \${ston})\`, + last_name: sql\`concat(\${ani}, \${ston})\`, middle_name: ref('first_name'), age: selectFrom('person') .select(fn.avg('age').as('avg_age')), From 8987870576db8444e320f8fa343a47413afe1f4f Mon Sep 17 00:00:00 2001 From: remiposo <57336808+remiposo@users.noreply.github.com> Date: Thu, 14 Nov 2024 19:30:57 +0900 Subject: [PATCH 2/2] fix: corrected the example in JSDoc --- src/query-builder/insert-query-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query-builder/insert-query-builder.ts b/src/query-builder/insert-query-builder.ts index 21a850bab..cef3d46ad 100644 --- a/src/query-builder/insert-query-builder.ts +++ b/src/query-builder/insert-query-builder.ts @@ -202,7 +202,7 @@ export class InsertQueryBuilder * .insertInto('person') * .values(({ ref, selectFrom, fn }) => ({ * first_name: 'Jennifer', - * last_name: sql`>concat(${ani}, ${ston})`, + * last_name: sql`concat(${ani}, ${ston})`, * middle_name: ref('first_name'), * age: selectFrom('person') * .select(fn.avg('age').as('avg_age')),