Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7029] iOS: Database - database not created by install method if file does not exist

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T22:24:38.000+0000
Affected Version/sRelease 1.7.5, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterPaul Dowsett
AssigneeIngo Muschenetz
Created2012-01-09T07:00:54.000+0000
Updated2017-07-10T22:24:38.000+0000

Description

Problem

Database not created by [Titanium.Database.install()](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Database.install-method.html) if file does not exist. It's expected to create an empty sqlite file if no file exists. Note: works as expected on Android

Test case

var db = Ti.Database.install('mydb1', 'mydb1Installed');

Logs

[ERROR] invalid database install path. /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/0E4DDB3E-2043-48D3-BE7A-938E74F24BD9/testing11.app/mydb1 in -TiDatabaseProxy install:name:
[ERROR] Script Error = invalid database install path. /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/0E4DDB3E-2043-48D3-BE7A-938E74F24BD9/testing11.app/mydb1 in -TiDatabaseProxy install:name: at app.js (line 491).

Comments

  1. Shameer Jan 2013-04-19

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  2. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source