Fix AV for usage on 5.1.22 servers when clicking on "information_schema": SHOW TABLE STATUS returns NULL in "Rows" column (rather than "0").

Fixes (last?) potential cause for bug #1772735 "unable to select a specific database"

Thanks to mdaems for the detailed bugreport via pm!
This commit is contained in:
Ansgar Becker
2007-10-16 20:10:31 +00:00
parent 17f9730b76
commit ea8e9da577

View File

@ -2143,7 +2143,7 @@ begin
// Default visible columns
// Records
ListCaptions.Add( FormatNumber( ds.FieldByName('Rows').AsFloat ) );
ListCaptions.Add( FormatNumber( ds.FieldByName('Rows').AsString ) );
// Size: Data_length + Index_length
bytes := ds.FieldByName('Data_length').AsFloat + ds.FieldByName('Index_length').AsFloat;
ListCaptions.Add( FormatByteNumber( FloatToStr(bytes) ) );