Skip to content

Commit

Permalink
Docs: fix typo (#1216)
Browse files Browse the repository at this point in the history
* fix: typo

* fix: corrected the example in JSDoc
  • Loading branch information
remiposo authored Nov 14, 2024
1 parent 413a885 commit 5e03f61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/docs/examples/insert/0040-complex-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const result = await db
.insertInto('person')
.values(({ ref, selectFrom, fn }) => ({
first_name: 'Jennifer',
last_name: sql<string>\`>concat(\${ani}, \${ston})\`,
last_name: sql<string>\`concat(\${ani}, \${ston})\`,
middle_name: ref('first_name'),
age: selectFrom('person')
.select(fn.avg<number>('age').as('avg_age')),
Expand Down
2 changes: 1 addition & 1 deletion src/query-builder/insert-query-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class InsertQueryBuilder<DB, TB extends keyof DB, O>
* .insertInto('person')
* .values(({ ref, selectFrom, fn }) => ({
* first_name: 'Jennifer',
* last_name: sql<string>`>concat(${ani}, ${ston})`,
* last_name: sql<string>`concat(${ani}, ${ston})`,
* middle_name: ref('first_name'),
* age: selectFrom('person')
* .select(fn.avg<number>('age').as('avg_age')),
Expand Down

0 comments on commit 5e03f61

Please sign in to comment.