Skip to content

Commit

Permalink
Issue #1870: support VARCHAR columns with a length of 0, in temporary…
Browse files Browse the repository at this point in the history
… fake tables for exporting views
  • Loading branch information
Ansgar Becker committed Nov 14, 2023
1 parent e640b8d commit 6ca09de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dbconnection.pas
Expand Up @@ -5639,7 +5639,7 @@ function TDBConnection.GetTableColumns(Table: TDBObject): TTableColumnList;
end;
end;
end;
if (not MaxLen.IsEmpty) and (MaxLen <> Col.DataType.DefaultSize.ToString) then
if (not MaxLen.IsEmpty) and ((MaxLen <> Col.DataType.DefaultSize.ToString) or Col.DataType.RequiresLength) then
Col.LengthSet := MaxLen;
end;
Col.Charset := ColQuery.Col('CHARACTER_SET_NAME');
Expand Down

0 comments on commit 6ca09de

Please sign in to comment.