fixed and enhanced function TSQLDBConnection.NewTableFromRows()