Can't recall why date/time columns in a VIEW did not get a default text for CREATE VIEW. Undo that and probably fix the issue described on http://www.heidisql.com/forum.php?t=7109

This commit is contained in:
Ansgar Becker
2011-01-17 20:58:56 +00:00
parent bb00b55798
commit 82b45cf09e

View File

@ -1932,8 +1932,7 @@ begin
Col.AllowNull := UpperCase(Results.Col('Null')) = 'YES';
Col.Collation := Results.Col('Collation', True);
Col.Comment := Results.Col('Comment', True);
if Col.DataType.Category <> dtcTemporal then
Col.DefaultText := Results.Col('Default');
Col.DefaultText := Results.Col('Default');
if Results.IsNull('Default') then begin
if Col.AllowNull then
Col.DefaultType := cdtNull