mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Foreign Key support on ExportSQL: fixSQL for ANSI SQL compatibility
This commit is contained in:
@@ -591,7 +591,8 @@ begin
|
||||
FOREIGN KEY import compatibility (head)
|
||||
Based on mysqldump output file
|
||||
}
|
||||
sql := '/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;';
|
||||
sql := '/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; */';
|
||||
sql := fixSQL( sql, target_version );
|
||||
if tofile then
|
||||
wfs(f, sql)
|
||||
else if tohost then
|
||||
@@ -1084,7 +1085,8 @@ begin
|
||||
FOREIGN KEY import compatibility (foot)
|
||||
Based on mysqldump output file
|
||||
}
|
||||
sql := '/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;';
|
||||
sql := '/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; */';
|
||||
sql := fixSQL( sql, target_version );
|
||||
if tofile then
|
||||
wfs(f, sql)
|
||||
else if tohost then
|
||||
|
||||
Reference in New Issue
Block a user