aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-07-10 12:44:15 +0000
committerstuconnolly <stuart02@gmail.com>2011-07-10 12:44:15 +0000
commit59527d9acd227a9a924fbd66ed29b85ea8b65a02 (patch)
treedca62602c88706a4d64ba6d1720a744cb269dd9c /Source/SPExportInitializer.m
parent4b071f5866460dbff1bce10a297f3b017dfea26b (diff)
downloadsequelpro-59527d9acd227a9a924fbd66ed29b85ea8b65a02.tar.gz
sequelpro-59527d9acd227a9a924fbd66ed29b85ea8b65a02.tar.bz2
sequelpro-59527d9acd227a9a924fbd66ed29b85ea8b65a02.zip
Add the option to the SQL export view as to whether or not the AUTO_INCREMENT value on a table's structure is included. Defaults to not included. Implements issue #1064.
Diffstat (limited to 'Source/SPExportInitializer.m')
-rw-r--r--Source/SPExportInitializer.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m
index f9d23b63..df615495 100644
--- a/Source/SPExportInitializer.m
+++ b/Source/SPExportInitializer.m
@@ -275,6 +275,7 @@
[sqlExporter setSqlOutputIncludeUTF8BOM:[exportUseUTF8BOMButton state]];
[sqlExporter setSqlOutputEncodeBLOBasHex:[exportSQLBLOBFieldsAsHexCheck state]];
[sqlExporter setSqlOutputIncludeErrors:[exportSQLIncludeErrorsCheck state]];
+ [sqlExporter setSqlOutputIncludeAutoIncrement:([exportSQLIncludeStructureCheck state] && [exportSQLIncludeAutoIncrementValueButton state])];
[sqlExporter setSqlInsertAfterNValue:[exportSQLInsertNValueTextField integerValue]];
[sqlExporter setSqlInsertDivider:[exportSQLInsertDividerPopUpButton indexOfSelectedItem]];