mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 10:43:02 +03:00
update: getPostgresVersion requires a database connection
This commit is contained in:
parent
40debbc7b5
commit
3ec67b9193
@ -156,12 +156,12 @@ if ($bHaveDiff) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($aResult['deduplicate']) {
|
if ($aResult['deduplicate']) {
|
||||||
//
|
$oDB =& getDB();
|
||||||
if (getPostgresVersion() < 9.3) {
|
|
||||||
|
if (getPostgresVersion($oDB) < 9.3) {
|
||||||
fail("ERROR: deduplicate is only currently supported in postgresql 9.3");
|
fail("ERROR: deduplicate is only currently supported in postgresql 9.3");
|
||||||
}
|
}
|
||||||
|
|
||||||
$oDB =& getDB();
|
|
||||||
$sSQL = 'select partition from country_name order by country_code';
|
$sSQL = 'select partition from country_name order by country_code';
|
||||||
$aPartitions = chksql($oDB->getCol($sSQL));
|
$aPartitions = chksql($oDB->getCol($sSQL));
|
||||||
$aPartitions[] = 0;
|
$aPartitions[] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user