aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-02-17 23:45:24 +0000
committerstuconnolly <stuart02@gmail.com>2013-02-17 23:45:24 +0000
commitd9e1657fce16698ba8f92b6777a6e8b08eb10318 (patch)
treeaaf4f1fc388629eac6f8d7b471832bc9d412c119 /Source/SPCopyTable.m
parent2af49924b345d7ac3468f62d77ff8fd8ff39a221 (diff)
downloadsequelpro-d9e1657fce16698ba8f92b6777a6e8b08eb10318.tar.gz
sequelpro-d9e1657fce16698ba8f92b6777a6e8b08eb10318.tar.bz2
sequelpro-d9e1657fce16698ba8f92b6777a6e8b08eb10318.zip
Fix remaining 10.6/7 build warnings.
Diffstat (limited to 'Source/SPCopyTable.m')
-rw-r--r--Source/SPCopyTable.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m
index f6f98219..02ff29ec 100644
--- a/Source/SPCopyTable.m
+++ b/Source/SPCopyTable.m
@@ -1274,8 +1274,9 @@ static const NSInteger kBlobAsImageFile = 4;
[env setObject:[infoPath stringByDeletingLastPathComponent] forKey:SPBundleShellVariableBundlePath];
[env setObject:bundleInputFilePath forKey:SPBundleShellVariableInputFilePath];
- if ([[self delegate] respondsToSelector:@selector(usedQuery)] && [[self delegate] usedQuery])
- [env setObject:[[self delegate] usedQuery] forKey:SPBundleShellVariableUsedQueryForTable];
+ if ([[self delegate] respondsToSelector:@selector(usedQuery)] && [(id <SPDatabaseContentViewDelegate>)[self delegate] usedQuery]) {
+ [env setObject:[(id <SPDatabaseContentViewDelegate>)[self delegate] usedQuery] forKey:SPBundleShellVariableUsedQueryForTable];
+ }
[env setObject:bundleInputTableMetaDataFilePath forKey:SPBundleShellVariableInputTableMetaData];
[env setObject:SPBundleScopeDataTable forKey:SPBundleShellVariableBundleScope];