Skip site navigation (1) Skip section navigation (2)


From: Francisco Javier Morosini Eguren <francisco(dot)morosini(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: PgNotificationHelper
Date: 2012-03-07 02:00:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hello i try to use PgNotificationHelper ( , the method:

        // not synchronized, must not access pub members
        private boolean poll() {
            assert(status == Status.LISTENING);
            try {
                lastPollTimeMs = System.currentTimeMillis();
                return true;
            } catch (SQLException e) {
                reportSQLException("Polling for notifications failed, will
try to reconnect", e);
                return false;

method poll in class notify.PgNotificationHelper cannot be applied to given
types required: java.sql.Connection, long, boolean found: no argument.

i know i need to add the parameters, because the parent class have:

public void poll(Connection conn, long pg_backend_pid, boolean
useDummyStatement) throws SQLException {

but, why in PgNotificationHelper don't pass the arguments? is an error?

pgsql-jdbc by date

Next:From: Anton BobovDate: 2012-03-07 09:10:06
Subject: Updatable query and column aliases
Previous:From: Thomas KellererDate: 2012-03-06 19:09:08
Subject: Driver does not return comments for types

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group