postgresql-jdbc.git / summary / log / commit / refs
commit 1572fd1c273a34e2b3ca2ed54952df58cf75fba8
Author: Kris Jurka <books@ejurka.com>
Date: Tue Aug 10 20:45:22 2010 +0000
Notify arguments are only returned when using the V3 protocol, so
skip the notify argument test on a V2 connection.
org/postgresql/test/jdbc2/NotifyTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org/postgresql/test/jdbc2/NotifyTest.java b/org/postgresql/test/jdbc2/NotifyTest.java
index d5533322..7f6644e4 100644
--- a/org/postgresql/test/jdbc2/NotifyTest.java
+++ b/org/postgresql/test/jdbc2/NotifyTest.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc2/NotifyTest.java,v 1.8 2008/01/08 06:56:31 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc2/NotifyTest.java,v 1.9 2010/04/06 23:41:11 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -51,7 +51,7 @@ public class NotifyTest extends TestCase
public void testNotifyArgument() throws Exception
{
- if (!TestUtil.haveMinimumServerVersion(conn, "9.0"))
+ if (!TestUtil.haveMinimumServerVersion(conn, "9.0") || TestUtil.isProtocolVersion(conn, 2))
return;
Statement stmt = conn.createStatement();
[parent: 9fc13af66891]