[TIMOB-718] iOS: YQL Insert, Update and Delete queries are not supported on Titanium
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-26T02:56:07.000+0000 |
Affected Version/s | Release 1.6.0, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Antonio Carlos Silveira |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T02:35:04.000+0000 |
Updated | 2017-07-26T02:56:07.000+0000 |
Description
YahooModule.m only supports SELECT queries and doesn't support INSERT, UPDATE and DELETE queries.
When trying to use INSERT queries with YAhoo.yql method the Application closes.
Here is some more info for this bug:
After doing all the OAuth process, I am calling a Yahoo.YQL method to access Private information. Here is my code:
I got this Error on Titanium Developer:
[ERROR] The application has crashed with an unhandled exception. Stack trace: 0 CoreFoundation 0x02b7e45b raiseError + 299
1 libobjc.A.dylib 0x97ccc509 objc_exception_throw + 56
2 CoreFoundation 0x02b92c3b +[NSException raise:format:arguments:] + 155
3 CoreFoundation 0x02b92b9a +[NSException raise:format:] + 58
4 Foundation 0x0041caf5 -[NSCFDictionary setObject:forKey:] + 293
5 iMeme 0x000369b5 -[YQLCallback requestFinished:] + 470
6 Foundation 0x00421b36 NSThreadPerformPerform + 678
7 CoreFoundation 0x02b498e1 CFRunLoopRunSpecific + 3217
8 CoreFoundation 0x02b48c48 CFRunLoopRunInMode + 88
9 GraphicsServices 0x02e1a615 GSEventRunModal + 217
10 GraphicsServices 0x02e1a6da GSEventRun + 115
11 UIKit 0x006abfaf UIApplicationMain + 1157
12 iMeme 0x0000328e main + 360
13 iMeme 0x000030fa start + 54
2010-04-06 01:05:16.675 iMeme[8214:207] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: data)'
2010-04-06 01:05:16.676 iMeme[8214:207] Stack: (
45605979,
2546779401,
45689915,
45689754,
4311797,
223669,
4332342,
45390049,
45386824,
48342549,
48342746,
6995887,
12942,
12538
) [DEBUG] Session did end with error (null) [INFO] Application has exited from Simulator
Still valid, based around the time it was filed and the last Yahoo updates for iOS.
I believe this is something we should move out of core and in to an external module. I've created a CommonJS module that supports iOS, Android and MobileWeb with the same API as the existing modules (plus OAuth support for MobileWeb). I also believe that it fixes the error displayed in this ticket. https://github.com/dawsontoth/ti.yahoo
Closing due to inactivity. If this issue still exists, please raise a new ticket.