diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-22 07:28:47 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-22 07:28:47 +0000 |
commit | fab8a7ddf951ed3697760093b43a612fa51a78c6 (patch) | |
tree | a50ea949cda8399b8dd5c1bec25f43d23bfdc864 /Source/CMCopyTable.m | |
parent | 859ca6771c479475ed454a4dbc61131fad30b492 (diff) | |
download | sequelpro-fab8a7ddf951ed3697760093b43a612fa51a78c6.tar.gz sequelpro-fab8a7ddf951ed3697760093b43a612fa51a78c6.tar.bz2 sequelpro-fab8a7ddf951ed3697760093b43a612fa51a78c6.zip |
• first steps to synchronize CustomQuery table and ContentTable
- CustomQuery table now allows to copy selected rows as SQL INSERT (table name is set to "<table>"
- if a field is a blob display only the first 255 bytes/chars in the CQ table for speed reasons
- blob fields in CQ does not listen to the pref setting for "LoadBlobsAsNeeded" because it could happen that no one-to-one relation to their original data will be found
Diffstat (limited to 'Source/CMCopyTable.m')
-rw-r--r-- | Source/CMCopyTable.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index 85f8a20e..1ed22248 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -26,6 +26,7 @@ #import "SPArrayAdditions.h" #import "CMMCPConnection.h" #import "TableContent.h" +#import "CustomQuery.h" int MENU_EDIT_COPY_WITH_COLUMN = 2001; int MENU_EDIT_COPY_AS_SQL = 2002; @@ -240,7 +241,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002; [mySQLConnection prepareString:[rowData description]]]]; break; case 2: // blob - if ([prefs boolForKey:@"LoadBlobsAsNeeded"]) { + if (![[self delegate] isKindOfClass:[CustomQuery class]] && [prefs boolForKey:@"LoadBlobsAsNeeded"]) { // Abort if there are no indices on this table or if there's no table name given. if (![[tableInstance argumentForRow:row] length] || selectedTable == nil) @@ -260,7 +261,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002; } break; case 3: // long text data - if ([prefs boolForKey:@"LoadBlobsAsNeeded"]) { + if (![[self delegate] isKindOfClass:[CustomQuery class]] && [prefs boolForKey:@"LoadBlobsAsNeeded"]) { // Abort if there are no indices on this table or if there's no table name given. if (![[tableInstance argumentForRow:row] length] || selectedTable == nil) |