Forum

[SOLVED] Postgres -...
 
Notifications
Retirer tout

[SOLVED] Postgres - COLUMN_COMMENT Missing in INFORMATION_SCHEMA.COLUMNS

3 Posts
2 Utilisateurs
0 Reactions
1,713 Vu
(@sensemila)
Posts: 2
New Member
Début du sujet
 
[#7785]

Hi,

I have many error in my log file, i have multpile entry with this message :2021-09-20 17:30:22.138 ** ERROR ** [V9.2.2]    For query : SELECT COLUMN_COMMENT as comment FROM INFORMATION_SCHEMA.COLUMNS  WHERE TABLE_SCHEMA='securite' AND TABLE_NAME='projeqtorproject' AND COLUMN_NAME='idprojeqtortask' 
This query in sqlelement.php not working on postgres SQL$sqlColumn="SELECT COLUMN_COMMENT as comment FROM INFORMATION_SCHEMA.COLUMNS "           ." WHERE TABLE_SCHEMA='$dbName' AND TABLE_NAME='$tableName' AND COLUMN_NAME='$dbFieldName'";
How i can fix the issue ?

Thanks a lot


 
Posté : 20/09/2021 11:07 pm
(@babynus)
Posts: 14952
Membre Admin
 

Replace line 4004 in model/persistence/SqlElement.php
from

      } else if ($type=='int' or $type=='int(10)' or $type=='int(11)') {

to

      } else if (($type=='int' or $type=='int(10)' or $type=='int(11)') and !Sql::isPgsql()) {


 
Posté : 21/09/2021 2:19 pm
(@sensemila)
Posts: 2
New Member
Début du sujet
 

Hi,
is Perfect 🙂

Thank for your help


 
Posté : 22/09/2021 1:15 pm
Share:
Retour en haut