pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: mEkdal (@mEkdal) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] issue #3424: Using postgresql-42.7.4.jar triggers PSQLException
Date: Tue, 12 Nov 2024 13:37:57 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

package Jvakt;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;


public class test07 {

    public static void main(String[] args) throws Exception {

        try (Connection con = DriverManager.getConnection(
                "jdbc:postgresql://localhost/Jvakt", "test", "test")) {
            Statement stmt = con.createStatement(ResultSet.CONCUR_READ_ONLY,ResultSet.TYPE_FORWARD_ONLY,ResultSet.CLOSE_CURSORS_AT_COMMIT );
            
            	stmt.executeQuery("create table streamtable (bin text, str text)");
           	
            }
        }
    }


42.7.4.jar   =>
Exception in thread "main" org.postgresql.util.PSQLException: Unknown value for ResultSet type
	at org.postgresql.jdbc.PgStatement.<init>(PgStatement.java:166)
	at org.postgresql.jdbc.PgConnection.createStatement(PgConnection.java:1404)
	at Jvakt.test07.main(test07.java:16)

42.7.3.jar  =>
The table streamtable is created. I ignored the exeption below. 
Exception in thread "main" org.postgresql.util.PSQLException: No results were returned by the query.
	at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:252)
	at Jvakt.test07.main(test07.java:18)




view thread (5+ 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 #3424: Using postgresql-42.7.4.jar triggers PSQLException
  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