From 3c52d5ea78847330f86bad7548a8d1a9bd2f0df6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sun, 22 Nov 2009 23:52:33 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed:=20backtick=20the=20database=20name?= =?UTF-8?q?=20in=20an=20UPDATE=20statement=20executed=20in=20the=20Query?= =?UTF-8?q?=20Editor=20-=20fix=20for=20i478?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.m | 4 ++-- 1 file 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]; -- cgit v1.2.3