mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
The 3 procedures Parse(Table|View|Routine)Structure() already do some connection specific stuff, and now even more, so they're moved to TMySQLConnection now. In order to display the right collation even if only the character set was found in a CREATE TABLE code, the default collation per charset is detected via CollationTable. See http://www.heidisql.com/forum.php?t=6348 .
This commit is contained in:
@ -556,8 +556,8 @@ begin
|
||||
ResultSQL := '';
|
||||
Columns := TTableColumnList.Create(True);
|
||||
case DBObj.NodeType of
|
||||
lntTable: ParseTableStructure(DBObj.CreateCode, Columns, nil, nil);
|
||||
lntView: ParseViewStructure(DBObj.CreateCode, DBObj.Name, Columns, Dummy, Dummy, Dummy);
|
||||
lntTable: DBObj.Connection.ParseTableStructure(DBObj.CreateCode, Columns, nil, nil);
|
||||
lntView: DBObj.Connection.ParseViewStructure(DBObj.CreateCode, DBObj.Name, Columns, Dummy, Dummy, Dummy);
|
||||
else AddNotes(DBObj.Database, DBObj.Name, STRSKIPPED+'a '+LowerCase(DBObj.ObjType)+' does not contain rows.', '');
|
||||
end;
|
||||
if Columns.Count > 0 then begin
|
||||
@ -1109,7 +1109,7 @@ begin
|
||||
if not FSecondExportPass then begin
|
||||
// Create temporary VIEW replacement
|
||||
ColumnList := TTableColumnList.Create(True);
|
||||
ParseViewStructure(DBObj.CreateCode, DBObj.Name, ColumnList, Dummy, Dummy, Dummy);
|
||||
DBObj.Connection.ParseViewStructure(DBObj.CreateCode, DBObj.Name, ColumnList, Dummy, Dummy, Dummy);
|
||||
Struc := '# Creating temporary table to overcome VIEW dependency errors'+CRLF+
|
||||
'CREATE TABLE ';
|
||||
if ToDb then
|
||||
|
Reference in New Issue
Block a user