From 520ea0973aa9e6f42cb2ff373dbd9bc25bfd2ec1 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 9 Oct 2009 11:29:10 +0000 Subject: Don't filter out the current table of available tables to reference when creating a new relation. Fixes issue #428. --- Source/SPTableRelations.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPTableRelations.m') 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]; -- cgit v1.2.3