From c965b60b6ec45f56aa406296b5c35f48360f175a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 23 Oct 2010 22:18:53 +0000 Subject: =?UTF-8?q?=E2=80=A2=20CSV=20Import=20Field=20Mapper=20Sheet=20-?= =?UTF-8?q?=20added=20the=20possibility=20to=20apply=20any=20sql=20functio?= =?UTF-8?q?n=20while=20importing=20set=20via=20"Add=20value=20or=20express?= =?UTF-8?q?ion"=20sheet=20eg=20concat('$2',=20'$1',=20length('$3'))=20wher?= =?UTF-8?q?eby=20$1=20$2=20$3=20are=20the=20placeholder=20for=20the=20csv?= =?UTF-8?q?=20file=20columns=201=202=203=20[first=20column=20starts=20with?= =?UTF-8?q?=201]=20=E2=80=A2=20fixed=20'=20escaping=20issue=20in=20MCPConn?= =?UTF-8?q?ection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m index f503db55..48509969 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m @@ -2551,7 +2551,7 @@ void pingThreadCleanup(MCPConnectionPingDetails *pingDetails) if (mysql_real_query(structConnection, queryCString, queryCStringLength) == 0) { // Query for procedures and functions - query = [NSString stringWithFormat:@"SELECT * FROM `information_schema`.`ROUTINES` WHERE `information_schema`.`ROUTINES`.`ROUTINE_SCHEMA` = '%@'", [currentDatabase stringByReplacingOccurrencesOfString:@"'" withString:@"\'"]]; + query = [NSString stringWithFormat:@"SELECT * FROM `information_schema`.`ROUTINES` WHERE `information_schema`.`ROUTINES`.`ROUTINE_SCHEMA` = '%@'", [currentDatabase stringByReplacingOccurrencesOfString:@"'" withString:@"\\'"]]; encodedQueryData = NSStringDataUsingLossyEncoding(query, theConnectionEncoding, 1); queryCString = [encodedQueryData bytes]; queryCStringLength = [encodedQueryData length]; -- cgit v1.2.3