1 pièce(s) jointe(s)
Problème après installation de PostGreSQL 9.2.2
* Bonjour, *
Après avoir installé PostGreSQL 9.2.2 et phpPgAdmin 5.0.4 sur XAMPP, je rencontre un problème lors de la création d'une base de donnée ou d'une table je rencontre ce message d'erreur :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Erreur SQL :
ERREUR: la colonne « spclocation » n'existe pas
LINE 1: ...pg_catalog.pg_get_userbyid(spcowner) AS spcowner, spclocatio...
^
Dans l'instruction :
SELECT spcname, pg_catalog.pg_get_userbyid(spcowner) AS spcowner, spclocation,
(SELECT description FROM pg_catalog.pg_shdescription pd WHERE pg_tablespace.oid=pd.objoid) AS spccomment
FROM pg_catalog.pg_tablespace WHERE spcname NOT LIKE $$pg\_%$$ ORDER BY spcname
Fatal error: Call to a member function recordCount() on a non-object in D:\Backup\xampp\phpPgAdmin\all_db.php on line 233 |
voici une capture d'ecran pour voir le message d'erreur
* Merci *
Fatal error: Call to a member function recordCount() on a non-object in C:\wamp\apps\phpPgAdmin\all_db.php
Fatal error: Call to a member function recordCount() on a non-object in C:\wamp\apps\phpPgAdmin\all_db.php on line 233
LIGNE 6968 dans le fichier Postgre.php
ICI , il suffit d'enlever la colonne 'spclocation' dans la clause "select" !
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| function getTablespaces($all = false) {
global $conf;
$sql = "SELECT spcname, pg_catalog.pg_get_userbyid(spcowner) AS spcowner,spclocation
(SELECT description FROM pg_catalog.pg_shdescription pd WHERE pg_tablespace.oid=pd.objoid) AS spccomment
FROM pg_catalog.pg_tablespace";
if (!$conf['show_system'] && !$all) {
$sql .= ' WHERE spcname NOT LIKE $$pg\_%$$';
}
$sql .= " ORDER BY spcname";
return $this->selectSet($sql);
} |