From a80d186a86bfe1a0f1bf7cdec9ddaa783d75a678 Mon Sep 17 00:00:00 2001 From: nguyenducminh10 <44760308+nguyenducminh10@users.noreply.github.com> Date: Wed, 9 Mar 2022 10:28:25 +0700 Subject: [PATCH] Update 2-queries.mdx Change to "SELECT $1::text as first_name, $2::text as last_name" from the row 175. Cannot run the example code because of the error syntax. --- content/features/2-queries.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/features/2-queries.mdx b/content/features/2-queries.mdx index 4153d67..0deef0d 100644 --- a/content/features/2-queries.mdx +++ b/content/features/2-queries.mdx @@ -172,7 +172,7 @@ By default node-postgres reads rows and collects them into JavaScript objects wi ```js const query = { - text: 'SELECT $1::text as first_name, select $2::text as last_name', + text: 'SELECT $1::text as first_name, $2::text as last_name', values: ['Brian', 'Carlson'], rowMode: 'array', }