From 034fe61ff648e35f621f81bfb321a19bb12ad150 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Mon, 29 Oct 2007 19:52:49 +0000 Subject: [PATCH] test missin connect --- expected/plproxy_errors.out | 10 ++++------ sql/plproxy_errors.sql | 4 +++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/expected/plproxy_errors.out b/expected/plproxy_errors.out index 3a0f2dc..545f8b1 100644 --- a/expected/plproxy_errors.out +++ b/expected/plproxy_errors.out @@ -44,12 +44,10 @@ $$ language plproxy; select * from test_map_err3('dat'); ERROR: PL/Proxy function public.test_map_err3(1): Field res2 does not exists in result create function test_map_err4(dat text, out res1 text, out res2 text) -returns record as $$ cluster 'testcluster'; run on 0; +returns record as $$ + --cluster 'testcluster'; + run on hashtext(dat); select dat as res2, 'foo' as res1; $$ language plproxy; select * from test_map_err4('dat'); - res1 | res2 -------+------ - foo | dat -(1 row) - +ERROR: PL/Proxy function public.test_map_err4(1): Compile error at line 5: CLUSTER statement missing diff --git a/sql/plproxy_errors.sql b/sql/plproxy_errors.sql index 042c142..60fec3d 100644 --- a/sql/plproxy_errors.sql +++ b/sql/plproxy_errors.sql @@ -42,7 +42,9 @@ $$ language plproxy; select * from test_map_err3('dat'); create function test_map_err4(dat text, out res1 text, out res2 text) -returns record as $$ cluster 'testcluster'; run on 0; +returns record as $$ + --cluster 'testcluster'; + run on hashtext(dat); select dat as res2, 'foo' as res1; $$ language plproxy; select * from test_map_err4('dat'); -- 2.39.5