Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5WFn-0002vR-FI for pgsql-jdbc@arkaria.postgresql.org; Fri, 20 Oct 2017 12:18:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e5WFm-0000Fi-2b for pgsql-jdbc@arkaria.postgresql.org; Fri, 20 Oct 2017 12:18:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e5WFj-0000EM-Rk for pgsql-jdbc@postgresql.org; Fri, 20 Oct 2017 12:18:16 +0000 Received: from m69-170.mailgun.net ([166.78.69.170]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e5WFg-00054K-SN for pgsql-jdbc@postgresql.org; Fri, 20 Oct 2017 12:18:14 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1508501891; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=0737wmXohf3YJ7RoPBz2lEZhxjn+YYMn7znrQ11M320=; b=KMWPfBD7BhAymGvi8Z8gtZQaxUNft6peIXOJrS8+l9FfLBrILHRsuHYGqy7jKdoTMZ5FO+Tc 0rOQeLHSK185Iqotehq3zvaWrZU4MrwUfj/PAyrgg0uDfnG+ejsUkM00lpop3oykZvDnaN2U P4FItQQjlx5ZycRReQmGmlhw0wc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=github.com; s=mailo; q=dns; h=Sender: Date: From: Reply-To: To: Message-ID: Subject: Mime-Version: Content-Type: Content-Transfer-Encoding; b=KnA3Dye4gN825RRZXPh3hG5Hq4HSyhbfsx8Sx10MvhIMUKa2qvO5rhLICpUM2EsP4MFrbP NNn9bwrpzQyBX3ALKZytalfncHnjXZMyo79ZLcvLBc9Y5wXi8CYZAXfE6hM5qbZ73y/Cqo1h J4krGkEie1rvMPszSpg5g4IeRcQ4M= X-Mailgun-Sending-Ip: 166.78.69.170 X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd Received: from github.com (Unknown [192.30.252.34]) by mxa.mailgun.org with ESMTP id 59e9e95f.7fa1c41e7c30-smtp-out-n03; Fri, 20 Oct 2017 12:17:35 -0000 (UTC) Date: Fri, 20 Oct 2017 05:17:34 -0700 From: Magnus Reply-To: Magnus To: pgsql-jdbc@postgresql.org Message-ID: <59e9e95e5e8f3_30303ff64b3a5c24169846@hookshot-fe2-cp1-prd.iad.github.net.mail> Subject: [pgjdbc/pgjdbc] 83dd5f: fix: make warnings available as soon as they are r... Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 83dd5fea94928b349e05c1417e264797052f2bbe https://github.com/pgjdbc/pgjdbc/commit/83dd5fea94928b349e05c1417e264797052f2bbe Author: Magnus Date: 2017-10-20 (Fri, 20 Oct 2017) Changed paths: A pgjdbc/src/main/java/org/postgresql/jdbc/PSQLWarningWrapper.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/StatementTest.java Log Message: ----------- fix: make warnings available as soon as they are received (#857) Until REL9.4.1210 warnings were available via Statement#getWarnings() and ResultSet#getWarnings() as soon as they were received from the server. This commit returns to that behavior. This is useful for long running queries, where it can be beneficial to know about a warning before the query completes. fixes #856 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc