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

This commit is contained in:
Brian Quinion
2012-11-01 01:46:19 +00:00
parent 26c63f8c4c
commit 1d3ca4faa7

View File

@@ -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;