Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1273

Ti.Database.execute() should return null when no results are found

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: CLI Release 6.3.0
    • Component/s: Core
    • Labels:
      None
    • Story Points:
      3

      Description

      • Our current ti.database.test.js test case is failing
      • Titanium.Database.execute() should return null when no results are found

      TEST CASE

      var db = Ti.Database.install('made.up.sqlite', 'category'),
          rows = db.execute('pragma table_info(\'category\');');
       
      Ti.API.info('rows: ' + JSON.stringify(rows, null, 2));
       
      db.remove();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                gmathews Gary Mathews
                Reviewer:
                Feon Sua Xin Miao
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code