Fix function signatures of varnish sql funcs in dev env
authorMagnus Hagander <magnus@hagander.net>
Fri, 6 Jul 2018 13:08:36 +0000 (15:08 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 6 Jul 2018 13:08:36 +0000 (15:08 +0200)
This should be the same as are used in the prodiction. We don't use them
in a way that has any effect on this today, but in case we do in the
future.

sql/varnish_local.sql

index b827017b37424c1dccbc892dcf2be05abf7363f8..30fe7360d2aeaf7c8467446df8afaba62bbdb06e 100644 (file)
@@ -7,15 +7,13 @@ BEGIN;
 --
 
 CREATE OR REPLACE FUNCTION varnish_purge(url text)
-RETURNS bigint
+RETURNS void
 AS $$
-   SELECT 1::bigint;
 $$ LANGUAGE 'sql';
 
-CREATE OR REPLACE FUNCTION varnish_purge_expr(url text)
-RETURNS bigint
+CREATE OR REPLACE FUNCTION varnish_purge_expr(expr text)
+RETURNS void
 AS $$
-   SELECT 1::bigint;
 $$ LANGUAGE 'sql';
 
 COMMIT;
\ No newline at end of file