From 1d3ca4faa736c168e80f0ed4e6536cd66dcbbbc5 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 1 Nov 2012 01:46:19 +0000 Subject: [PATCH] hstore in 9.2 replaces k=>v with hstore(k,v). Update sql to reflect change and introduce compatability function for pre 9.1 postgresql --- sql/hstore_compatability_9_0.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sql/hstore_compatability_9_0.sql diff --git a/sql/hstore_compatability_9_0.sql b/sql/hstore_compatability_9_0.sql new file mode 100644 index 00000000..088dd792 --- /dev/null +++ b/sql/hstore_compatability_9_0.sql @@ -0,0 +1,8 @@ +CREATE OR REPLACE FUNCTION hstore(k text, v text) RETURNS HSTORE + AS $$ +DECLARE +BEGIN + RETURN k => v; +END; +$$ +LANGUAGE plpgsql IMMUTABLE; -- 2.39.5