From ef40b6f3e9dd7847b34523da4e823474ebc4e601 Mon Sep 17 00:00:00 2001 From: Gurjeet Singh Date: Sun, 22 Jun 2014 08:19:26 -0400 Subject: [PATCH] Re-add the test for SELECT tag; I was wrong in my assumption. Postgres generally does not emit a SELECT tag after a SELECT query, but it does emit that tag after a CREATE TABLE x AS SELECT query. Example: postgres=# create table t as select 1; SELECT 1 --- test/unit/client/result-metadata-tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/client/result-metadata-tests.js b/test/unit/client/result-metadata-tests.js index 8fe892e..435af25 100644 --- a/test/unit/client/result-metadata-tests.js +++ b/test/unit/client/result-metadata-tests.js @@ -36,3 +36,4 @@ testForTag("INSERT 0 3", check(0, 3, "INSERT")); testForTag("INSERT 841 1", check(841, 1, "INSERT")); testForTag("DELETE 10", check(null, 10, "DELETE")); testForTag("UPDATE 11", check(null, 11, "UPDATE")); +testForTag("SELECT 20", check(null, 20, "SELECT"));