extensions where introduced in postgresql in 9.1, not in 9.0

This commit is contained in:
Sarah Hoffmann
2012-01-21 12:09:43 +00:00
parent cc564e2f31
commit acadfcb2c5

View File

@@ -82,7 +82,7 @@
$oDB =& getDB();
passthru('createlang plpgsql '.$aDSNInfo['database']);
$pgver = (float) CONST_Postgresql_Version;
if ($pgver < 9.0) {
if ($pgver < 9.1) {
pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
} else {
pgsqlRunScript('CREATE EXTENSION hstore');