Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1666

Attempting to SELECT from a non-existant table crashes the app

    Details

      Description

      {html}<div><p>I have this code:</p>
      <pre>
      <code>try { var rs = db.execute('SELECT * FROM meta'); } catch (e) { Ti.API.info("Error: " + e); }</code>
      </pre>
      <p>which results in my app crashing with this error in the OS X
      Console:</p>
      <pre>
      <code>8/28/10 4:15:45 PM BillingWorks3[17336] *** Terminating app due to uncaught exception 'org.billingworks3.TiDatabaseProxy', reason: 'invalid SQL statement. Error Domain=com.plausiblelabs.pldatabase Code=3 "An error occured parsing the provided SQL statement." UserInfo=0x911bcf0 {com.plausiblelabs.pldatabase.error.vendor.code=1, NSLocalizedDescription=An error occured parsing the provided SQL statement., com.plausiblelabs.pldatabase.error.query.string=SELECT * FROM meta, com.plausiblelabs.pldatabase.error.vendor.string=no such table: meta} in -[TiDatabaseProxy execute:] (TiDatabaseProxy.m:134)'</code>
      </pre>
      <p>I would have expected my error handler to have caught the
      exception rather than crashing the app.</p></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stephentramer Stephen Tramer
                Reporter:
                ben(atgalbraiths) ben (at galbraiths)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-1506
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration