]> git.openstreetmap.org Git - nominatim.git/commitdiff
hstore in 9.2 replaces k=>v with hstore(k,v). Update sql to reflect change and intro...
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 1 Nov 2012 01:46:19 +0000 (01:46 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 1 Nov 2012 01:46:19 +0000 (01:46 +0000)
sql/hstore_compatability_9_0.sql [new file with mode: 0644]

diff --git a/sql/hstore_compatability_9_0.sql b/sql/hstore_compatability_9_0.sql
new file mode 100644 (file)
index 0000000..088dd79
--- /dev/null
@@ -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;