Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Postgres -...
 
Notifications
Clear all

[SOLVED] Postgres - COLUMN_COMMENT Missing in INFORMATION_SCHEMA.COLUMNS

3 Posts
2 Users
0 Reactions
1,768 Views
(@sensemila)
Posts: 2
New Member
Topic starter
 
[#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


 
Posted : 20 Sep 2021 23H07
babynus
(@babynus)
Posts: 14966
Main Contributor 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()) {


 
Posted : 21 Sep 2021 14H19
(@sensemila)
Posts: 2
New Member
Topic starter
 

Hi,
is Perfect 🙂

Thank for your help


 
Posted : 22 Sep 2021 13H15
Share:

Scroll to Top