Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Phantom data in SQLite Database

Running into an odd issue, hopefully someone might have a clue for this. I am reading a list of people from a simple SQLite database (34 rows) and displaying them in a table, but when I run the app (on device or emulator), I am getting extra data from another app I wrote.

I have tried renaming the databases, and no luck. I also tried a restart to see if there was something still stuck in a cache somewhere.

I have doubled checked the database with several editor and the data is clearly not in there.

Any thoughts?

— asked October 19th 2010 by Chris Griffith
  • sqlite
0 Comments

1 Answer

  • Did you do an install?

    db = Titanium.Database.install()

    and did you gave it different name?

    — answered October 19th 2010 by Peter Lum
    permalink
    1 Comment
    • Yup.
      var speakers_db = Titanium.Database.install('../speaker.db','speakers');
      became
      var speakers_db = Titanium.Database.install('../speakerDB.db','speakers2');

      — commented October 19th 2010 by Chris Griffith
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.