Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-718] iOS: YQL Insert, Update and Delete queries are not supported on Titanium

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-26T02:56:07.000+0000
Affected Version/sRelease 1.6.0, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAntonio Carlos Silveira
AssigneeIngo Muschenetz
Created2011-04-15T02:35:04.000+0000
Updated2017-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.

Comments

  1. Antonio Carlos Silveira 2011-04-15

    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:

       function ready() {
           
           //Titanium.Yahoo.setOAuthParameters(consumerKey,sharedSecret);
       
           // YQL query variable
           var queryYQL = 'SELECT * from meme.info WHERE owner_guid=me';
       
           //Start YQL Loop
           Titanium.Yahoo.yql(queryYQL, function(e)
           {
               try
               {
                       Ti.API.info("Starting loop with YQL Query on READY()");
                   Ti.API.info('Found YQL results data? ' + e.success);
       
                   if (e.message)
                   {
                       Ti.API.error('YQL Error Message READY(): ' + e.message);
                   }
       
                   //Get all values from Account Info
                   meme = e.data.meme;
                   
                   Ti.API.info("Description Meme: " + meme);
                   
       
               }
               catch(E)
               {
                   Titanium.API.error("Error retrieving READY() = " + E);
               }
           });
       }
       

    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

  2. Stephen Tramer 2011-04-15

    Still valid, based around the time it was filed and the last Yahoo updates for iOS.

  3. Dawson Toth 2012-04-27

    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
  4. Lee Morris 2017-07-26

    Closing due to inactivity. If this issue still exists, please raise a new ticket.

JSON Source