pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: DmitriyGod (@DmitriyGod) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] issue #3564: CallableStatement.getParameterMetadata returns wrong parameter mode
Date: Mon, 10 Mar 2025 15:48:53 +0000
Message-ID: <[email protected]> (raw)

**Describe the issue**
CallableStatement.getParameterMetadata returns wrong parameter mode

**Driver Version?** 
latest

**Java Version?**
any

**OS Version?**
any

**PostgreSQL Version?**
latest

**To Reproduce**
```SQL
create procedure p_date(in a date, out b date)
language plpgsql AS $$ begin b = a; end; $$;
```

```Java
var call = cn.prepareCall("call p_date(?, ?)");

call.getParameterMetaData().getParameterMode(1); // 1 as expected
call.getParameterMetaData().getParameterMode(2); // 1 but 4 expected
```
**Expected behaviour**
```Java
var call = cn.prepareCall("call p_date(?, ?)");

call.getParameterMetaData().getParameterMode(1); // 1 as expected
call.getParameterMetaData().getParameterMode(2); // 1 but 4 expected
```

**Logs**
No exceptions

view thread (2+ messages)  latest in thread

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: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] issue #3564: CallableStatement.getParameterMetadata returns wrong parameter mode
  In-Reply-To: <<[email protected]>>

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

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