Skip to content

Commit eb3937a

Browse files
committed
fix: skip harmless error when PG has no COLLATION_NAME in IS.COLUMNS
Refs #2338
1 parent 556e4fb commit eb3937a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dbconnection.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5869,7 +5869,7 @@ function TDBConnection.GetTableColumns(Table: TDBObject): TTableColumnList;
58695869
Col.LengthSet := MaxLen;
58705870
end;
58715871
Col.Charset := ColQuery.Col('CHARACTER_SET_NAME');
5872-
Col.Collation := ColQuery.Col('COLLATION_NAME');
5872+
Col.Collation := ColQuery.Col('COLLATION_NAME', True);
58735873
// MSSQL has no expression
58745874
Col.GenerationExpression := ColQuery.Col('GENERATION_EXPRESSION', True);
58755875
Col.GenerationExpression := UnescapeString(Col.GenerationExpression);

0 commit comments

Comments
 (0)