pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: bajinsheng@u.nus.edu
Subject: BUG #18222: Unexpected Error--Cannot delete from scalar
Date: Mon, 04 Dec 2023 05:56:09 +0000
Message-ID: <18222-de86a89e6ed68f3d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18222
Logged by:          Jinsheng Ba
Email address:      bajinsheng@u.nus.edu
PostgreSQL version: 16.1
Operating system:   Ubuntu
Description:        

SELECT ('1'-to_hex(2))::BOOLEAN; -- ERROR:  cannot delete from scalar

This error looks strange to me as I do not understand what this error
means.

If I execute the following query, there is no error instead:
SELECT '1'-2; -- {-2}



view thread (4+ messages)  latest in thread

Message-ID: <18222-de86a89e6ed68f3d@postgresql.org>
Permalink:  ../18222-de86a89e6ed68f3d@postgresql.org/
Also on:    postgresql.org/message-id/18222-de86a89e6ed68f3d@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, bajinsheng@u.nus.edu
  Subject: Re: BUG #18222: Unexpected Error--Cannot delete from scalar
  In-Reply-To: <18222-de86a89e6ed68f3d@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox