could not prepare statement: 1; Message: no such table: sources

C Chris Child 3 years 7 months ago
23 1 0

Hi

I've only started getting the error in the title after setting encrypt_database in my build.yml file to 1. If I remove the encryption the Rho.ORM.getModel call works fine. The odd thing is that this is the only table that is causing a problem after setting encryption. The others are completely fine.

Here is the code for creating the model.
Rho.ORM.addModel(function(model) {
  model.modelName("User");
  model.enable("sync");
  model.property("username","string");
  model.property("localLogin","float");
  model.property("activeUser","float");
  model.set("partition", "credentials");
  });

Please Register or Login to post a reply

1 Replies

C Chris Child

This is the error messages that I see in my log file.

I 11/09/2015 14:21:32:320 00001cfc                   DB| Open DB: C:/CE/rho/db/syncdbcredentials.sqlite
I 11/09/2015 14:21:32:320 00001cfc           JavaScript| Console message at undefined:0
I 11/09/2015 14:21:32:336 00001cfc           JavaScript| could not prepare statement: 1; Message: no such table: sources

I was pretty sure the Rho.ORM.getModel call was why I was getting the two messages after trying to Open the DB but now I'm not so sure. FYI syncdbcredentials.sqlite does exist after I've called the  method that creates the model above but it has a size of 0kb when I look in Windows Explorer.

CONTACT
Can’t find what you’re looking for?