diff options
author | stuconnolly <stuart02@gmail.com> | 2010-04-09 13:01:52 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-04-09 13:01:52 +0000 |
commit | 3b59093cd3d5be30a809bdc6bb9f3ba63c9ce275 (patch) | |
tree | bbfc2cd6215a74f33eea50e768761ed0a050fb44 /Source/TableDocument.m | |
parent | 965abac73b603c464dc9d58ce4778f239ff6e2b9 (diff) | |
download | sequelpro-3b59093cd3d5be30a809bdc6bb9f3ba63c9ce275.tar.gz sequelpro-3b59093cd3d5be30a809bdc6bb9f3ba63c9ce275.tar.bz2 sequelpro-3b59093cd3d5be30a809bdc6bb9f3ba63c9ce275.zip |
When displaying a table/view's create syntax in the extended table information view or create syntax sheet remember to append a semi-colon. Fixes issue #629.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index bd12b9bf..ab8a7ac5 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1684,10 +1684,10 @@ } [createTableSyntaxTextField setStringValue:[NSString stringWithFormat:@"Create syntax for %@ '%@'", typeString, [self table]]]; - + [createTableSyntaxTextView setEditable:YES]; [createTableSyntaxTextView setString:@""]; - [createTableSyntaxTextView insertText:([tablesListInstance tableType] == SPTableTypeView) ? [tableSyntax createViewSyntaxPrettifier] : tableSyntax]; + [createTableSyntaxTextView insertText:([tablesListInstance tableType] == SPTableTypeView) ? [[tableSyntax createViewSyntaxPrettifier] stringByAppendingString:@";"] : [tableSyntax stringByAppendingString:@";"]]; [createTableSyntaxTextView setEditable:NO]; [createTableSyntaxWindow makeFirstResponder:createTableSyntaxTextField]; |