diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-13 12:18:47 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-13 12:18:47 +0000 |
commit | d6e9ec7664681c8a03fdbd96a38277abb99271f4 (patch) | |
tree | 6bdfcf956cf57d8f2afeba99ccb759cce4a925e7 /Source/TableDump.m | |
parent | 53b268eece1c040b71a58bb7652e360263f4d3f0 (diff) | |
download | sequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.tar.gz sequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.tar.bz2 sequelpro-d6e9ec7664681c8a03fdbd96a38277abb99271f4.zip |
Move query mode constants to SPConstants.h.
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r-- | Source/TableDump.m | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index 21379c90..02e46cd7 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -554,7 +554,7 @@ [NSApp beginSheet:singleProgressSheet modalForWindow:tableWindow modalDelegate:self didEndSelector:nil contextInfo:nil]; [singleProgressSheet makeKeyWindow]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_IMPORTEXPORT]; + [tableDocumentInstance setQueryMode:SPImportExportQueryMode]; // Read in the file in a loop sqlParser = [[SPSQLParser alloc] init]; @@ -577,7 +577,7 @@ [sqlParser release]; [sqlDataBuffer release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return; } @@ -625,7 +625,7 @@ [sqlParser release]; [sqlDataBuffer release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return; } } @@ -704,7 +704,7 @@ [sqlParser release]; [sqlDataBuffer release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; // Close progress sheet [self closeAndStopProgressSheet]; @@ -791,7 +791,7 @@ [NSApp beginSheet:singleProgressSheet modalForWindow:tableWindow modalDelegate:self didEndSelector:nil contextInfo:nil]; [singleProgressSheet makeKeyWindow]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_IMPORTEXPORT]; + [tableDocumentInstance setQueryMode:SPImportExportQueryMode]; // Read in the file in a loop. The loop actually needs to perform three tasks: read in // CSV data and parse them into row arrays; present the field mapping interface once it @@ -835,7 +835,7 @@ [parsedRows release]; [parsePositions release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return; } @@ -875,7 +875,7 @@ [parsedRows release]; [parsePositions release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return; } @@ -919,7 +919,7 @@ [parsedRows release]; [parsePositions release]; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return; } @@ -1016,7 +1016,7 @@ [parsePositions release]; if (fieldMappingArray) [fieldMappingArray release], fieldMappingArray = nil; [importPool drain]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; // Close progress sheet [self closeAndStopProgressSheet]; @@ -1311,7 +1311,7 @@ modalForWindow:tableWindow modalDelegate:self didEndSelector:nil contextInfo:nil]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_IMPORTEXPORT]; + [tableDocumentInstance setQueryMode:SPImportExportQueryMode]; // Copy over the selected table names into a table in preparation for iteration for ( i = 0 ; i < [tables count] ; i++ ) { @@ -1608,7 +1608,7 @@ [errorsSheet orderOut:nil]; } - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; [sqlString release]; return TRUE; @@ -2223,7 +2223,7 @@ [singleProgressBar setDoubleValue:0]; [singleProgressBar displayIfNeeded]; - [tableDocumentInstance setQueryMode:SP_QUERYMODE_IMPORTEXPORT]; + [tableDocumentInstance setQueryMode:SPImportExportQueryMode]; // Open the progress sheet [NSApp beginSheet:singleProgressSheet @@ -2401,7 +2401,7 @@ [errorsSheet orderOut:nil]; } - [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; + [tableDocumentInstance setQueryMode:SPInterfaceQueryMode]; return TRUE; } |