aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-09 11:29:10 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-09 11:29:10 +0000
commit520ea0973aa9e6f42cb2ff373dbd9bc25bfd2ec1 (patch)
tree72423a5dad75b5f3cf275dea5d8d0a0a21609e8c /Source/SPTableRelations.m
parent0e9df92aef86421374ca1756ff3cbfa4c386c822 (diff)
downloadsequelpro-520ea0973aa9e6f42cb2ff373dbd9bc25bfd2ec1.tar.gz
sequelpro-520ea0973aa9e6f42cb2ff373dbd9bc25bfd2ec1.tar.bz2
sequelpro-520ea0973aa9e6f42cb2ff373dbd9bc25bfd2ec1.zip
Don't filter out the current table of available tables to reference when creating a new relation. Fixes issue #428.
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 5da03fcc..d83d7ec5 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -150,7 +150,7 @@
[refTablePopUpButton removeAllItems];
// Get all InnoDB tables in the current database
- MCPResult *result = [connection queryString:[NSString stringWithFormat:@"SELECT table_name FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND engine = 'InnoDB' AND table_schema = '%@' AND table_name != '%@'", [tableDocumentInstance database], [tablesListInstance tableName]]];
+ MCPResult *result = [connection queryString:[NSString stringWithFormat:@"SELECT table_name FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND engine = 'InnoDB' AND table_schema = '%@'", [tableDocumentInstance database]]];
[result dataSeek:0];