Skip to content

Commit bb1f728

Browse files
committed
test: Fix database metadata to handle older versions for function comment
Fixes DatabaseMetaDataTest to use older syntax for COMMENT ON FUNCTION with explicit no-arg parameter parentheses as it is required on server versions before v10.
1 parent f4928ce commit bb1f728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void setUp() throws Exception {
9292
TestUtil.createTable(con, "duplicate", "x text");
9393
TestUtil.execute("comment on table duplicate is 'duplicate table'", con);
9494
TestUtil.execute("create or replace function bar() returns integer language sql as $$ select 1 $$", con);
95-
TestUtil.execute("comment on function bar is 'bar function'", con);
95+
TestUtil.execute("comment on function bar() is 'bar function'", con);
9696
TestUtil.execute("update pg_description set objoid = 'duplicate'::regclass where objoid = 'bar'::regproc",conPriv);
9797

9898
// 8.2 does not support arrays of composite types

0 commit comments

Comments
 (0)