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: vik@notexi.st
Subject: BUG #18780: Bindings types are lost for complex queries
Date: Sun, 19 Jan 2025 22:25:42 +0000
Message-ID: <18780-bae540b8dbfe4cdc@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18780
Logged by:          Viktr
Email address:      vik@notexi.st
PostgreSQL version: 17.2
Operating system:   Linux d2c635331de7 6.10.14-linuxkit #1 SMP PREEMPT
Description:        

Hi there,

Actual discussion is here: https://github.com/pgjdbc/pgjdbc/issues/3482
In brief: I do understand that "select 1 as one, 2 as two, 3 as three" might
have lack of type info. But I suppose, in case these values are used in the
assignment, the type could be taken from the corresponding column type. Like
for "insert into sometable(one, two, three) select 1 as one, 2 as two, 3 as
three" it is obvious that types should match.



view thread (6+ messages)  latest in thread

Message-ID: <18780-bae540b8dbfe4cdc@postgresql.org>
Permalink:  ../18780-bae540b8dbfe4cdc@postgresql.org/
Also on:    postgresql.org/message-id/18780-bae540b8dbfe4cdc@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, vik@notexi.st
  Subject: Re: BUG #18780: Bindings types are lost for complex queries
  In-Reply-To: <18780-bae540b8dbfe4cdc@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