Skip to content
Snippets Groups Projects
Commit 771a5655 authored by Armand Bahi's avatar Armand Bahi
Browse files

Merge branch 'Sebastien-master-patch-58096' into 'master'

Mise à jour du fichier de version pour fonctionnait avec la version 11.0 de PostgreSQL

See merge request Development/vitis_apps/sources/vitis!1
parents 4398b26d 064924ec
No related branches found
No related tags found
No related merge requests found
...@@ -141,11 +141,9 @@ class Versions extends Vitis { ...@@ -141,11 +141,9 @@ class Versions extends Vitis {
$aVersion = explode(".", $sPostgresql); $aVersion = explode(".", $sPostgresql);
$bExtension = false; $bExtension = false;
if ($aVersion[0] >= 9) { if ($aVersion[0] . $aVersion[1] >= 91) {
if ($aVersion[1] >= 1) {
$bExtension = true; $bExtension = true;
} }
}
if ($bExtension == true) { if ($bExtension == true) {
$sSql = "SELECT default_version FROM pg_catalog.pg_available_extensions where name = 'postgis';"; $sSql = "SELECT default_version FROM pg_catalog.pg_available_extensions where name = 'postgis';";
$oPDOresult = $this->oConnection->oBd->executeWithParams($sSql, array()); $oPDOresult = $this->oConnection->oBd->executeWithParams($sSql, array());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment