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:47:30 +00:00
parent 1d3ca4faa7
commit 678dcbd82a
2 changed files with 11 additions and 10 deletions

View File

@@ -109,6 +109,7 @@
$pgver = (float) CONST_Postgresql_Version;
if ($pgver < 9.1) {
pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
pgsqlRunScriptFile(CONST_BasePath.'/sql/hstore_compatability_9_0.sql');
} else {
pgsqlRunScript('CREATE EXTENSION hstore');
}