aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-05-13 00:56:36 +0000
committermtvee <emptyvee@gmail.com>2009-05-13 00:56:36 +0000
commit12b84cb69a904fb6ea714ab6d4b0b885f4d54436 (patch)
tree8e0df64c75a9300f375960d1c2dfcfd90e4d9959 /Source/SPTableData.m
parent35e6aaac3997475a04984b09fac24ab02574ab27 (diff)
downloadsequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.tar.gz
sequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.tar.bz2
sequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.zip
- added ability to view function and procedures and preliminary ability to input same via the editor
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index b791563b..4ed5823a 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -214,11 +214,15 @@
*/
- (BOOL) updateInformationForCurrentTable
{
- NSDictionary *tableData = [self informationForTable:[tableListInstance tableName]];
+ NSDictionary *tableData = nil;
NSDictionary *columnData;
NSEnumerator *enumerator;
- if (tableData == nil) {
+ if( [tableListInstance tableType] == SP_TABLETYPE_TABLE || [tableListInstance tableType] == SP_TABLETYPE_VIEW ) {
+ tableData = [self informationForTable:[tableListInstance tableName]];
+ }
+
+ if (tableData == nil ) {
[columns removeAllObjects];
[columnNames removeAllObjects];
return FALSE;