Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

json "table" auto-erase #4

Open
pandamasta opened this issue Apr 7, 2014 · 3 comments
Open

json "table" auto-erase #4

pandamasta opened this issue Apr 7, 2014 · 3 comments

Comments

@pandamasta
Copy link

Hi,

For a test, I stayed on the F5 key to refresh a page content
It has deleted all the data in my table and replace by NULL.

To reproduce. Print a webpage where the data comes from a json "table", refresh the page..... all is erased

Cheers,Aurelien

@strzlee
Copy link
Owner

strzlee commented Oct 17, 2014

Can't reproduce this. Pls provide a code sample, how you get this...

@ghost
Copy link

ghost commented Nov 25, 2014

I can confirm this.

After this:

$db = new JsonTable("file.json"); $db->selectAll();

If the script ends with some error (eg maximum execution time exceeded) the content of the json file is erased.

Edit: Also will happen when you update (F5) before the script finish.

@WASasquatch
Copy link

Is this fixable? I was using this for various small things, and every single one of them are plagued by this problem forcing me to sqlite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants