Skip to content

Commit ab7923d

Browse files
committed
fix: reveal default text value of SQLite columns
Refs #2518
1 parent 606f538 commit ab7923d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/dbconnection.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6077,6 +6077,10 @@ function TSQLiteConnection.GetTableColumns(Table: TDBObject): TTableColumnList;
60776077
Col.AllowNull := ColQuery.Col('notnull') <> '1';
60786078
Col.DefaultType := cdtNothing;
60796079
Col.DefaultText := '';
6080+
if not ColQuery.Col('dflt_value').IsEmpty then begin
6081+
Col.DefaultType := cdtText;
6082+
Col.DefaultText := ColQuery.Col('dflt_value').DeQuotedString(FStringQuoteChar);
6083+
end;
60806084
Col.OnUpdateType := cdtNothing;
60816085
Col.OnUpdateText := '';
60826086
case StrToIntDef(ColQuery.Col('hidden'), 0) of

0 commit comments

Comments
 (0)