psql -c command parse "select $$hello$$" failed

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: psql -c command parse "select $$hello$$" failed
Date: 2023-07-04 12:21:10
Message-ID: CACJufxG=gshS2XPrTBAJNOfw7n=0OpnUtf6L0Q5shzMc8oQxqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.
not sure this is the expected result.

/home/jian/postgres/pg16_test/bin/psql -d test_dev -p 5455 -c "select $$hello$$"
2023-07-04 20:15:51.066 CST [1562050] ERROR: trailing junk after
numeric literal at or near "884070h" at character 8
2023-07-04 20:15:51.066 CST [1562050] STATEMENT: select 884070hello884070
ERROR: trailing junk after numeric literal at or near "884070h"
LINE 1: select 884070hello884070
^

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Julien Rouhaud 2023-07-04 12:36:16 Re: psql -c command parse "select $$hello$$" failed
Previous Message Kirk Wolak 2023-07-03 15:10:12 Re: psql and pgpass.conf on Windows