diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-11-22 23:52:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-11-22 23:52:33 +0000 |
commit | 3c52d5ea78847330f86bad7548a8d1a9bd2f0df6 (patch) | |
tree | 21694a815eba86696424284d1a64f3c10a064648 | |
parent | 68168615e8c35c2d5c6e08284dc1478376883d8d (diff) | |
download | sequelpro-3c52d5ea78847330f86bad7548a8d1a9bd2f0df6.tar.gz sequelpro-3c52d5ea78847330f86bad7548a8d1a9bd2f0df6.tar.bz2 sequelpro-3c52d5ea78847330f86bad7548a8d1a9bd2f0df6.zip |
• fixed: backtick the database name in an UPDATE statement executed in the Query Editor
- fix for i478
-rw-r--r-- | Source/CustomQuery.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 5eb3ddca..43c3a0a9 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1443,8 +1443,8 @@ [mySQLConnection queryString: [NSString stringWithFormat:@"UPDATE %@.%@ SET %@.%@.%@=%@ %@ LIMIT 1", - [columnDefinition objectForKey:@"db"], [tableForColumn backtickQuotedString], - [columnDefinition objectForKey:@"db"], [tableForColumn backtickQuotedString], [columnName backtickQuotedString], newObject, fieldIDQueryString]]; + [[columnDefinition objectForKey:@"db"] backtickQuotedString], [tableForColumn backtickQuotedString], + [[columnDefinition objectForKey:@"db"] backtickQuotedString], [tableForColumn backtickQuotedString], [columnName backtickQuotedString], newObject, fieldIDQueryString]]; // [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:tableDocumentInstance]; |