[GH-ISSUE #24] Bug in PG10 #23

Closed
opened 2026-05-05 03:30:51 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @YanuszDupa on GitHub (Apr 28, 2022).
Original GitHub issue: https://github.com/levinsv/pgadmin3/issues/24

in schema/pgindex.cpp line 204-206 is wrong , indnkeyatts property first arrive in PG 11.x , not PG 10.x

if (GetConnection()->BackendMinimumVersion(10, 0))
 query += ","+ NumToStr(i)+" <= i.indnkeyatts AS is_key\n"; 
else query += ",true AS is_key\n";

Error

Originally created by @YanuszDupa on GitHub (Apr 28, 2022). Original GitHub issue: https://github.com/levinsv/pgadmin3/issues/24 in schema/pgindex.cpp line 204-206 is wrong , indnkeyatts property first arrive in PG 11.x , not PG 10.x ``` if (GetConnection()->BackendMinimumVersion(10, 0)) query += ","+ NumToStr(i)+" <= i.indnkeyatts AS is_key\n"; else query += ",true AS is_key\n"; ``` ![Error](https://user-images.githubusercontent.com/104570390/165754171-7e613222-64b4-4470-8217-8817556a7f4e.png)
gitea-mirror added the
bug
label 2026-05-05 03:30:51 -06:00
Author
Owner

@levinsv commented on GitHub (Apr 28, 2022):

fix in commit 42db7dbb . But testing was not carried out, there is no version 10.

<!-- gh-comment-id:1112524194 --> @levinsv commented on GitHub (Apr 28, 2022): fix in commit 42db7dbb . But testing was not carried out, there is no version 10.
Author
Owner

@YanuszDupa commented on GitHub (Apr 29, 2022):

Tested on PG 10.20 , no errors in new build.

<!-- gh-comment-id:1113093055 --> @YanuszDupa commented on GitHub (Apr 29, 2022): Tested on PG 10.20 , no errors in new build.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/pgadmin3#23
No description provided.