Skip to content

Conversation

@kanghj
Copy link
Contributor

@kanghj kanghj commented Mar 22, 2017

http://jsfiddle.net/80smosgp/2/ should show that it works as expected.

This is really @seb-ster 's code provided in the issue thread #462

kanghj added 3 commits March 19, 2017 19:56
Conflicts:
	dist/alasql-worker.js
	dist/alasql-worker.min.js
	dist/alasql.fs.js
	dist/alasql.js
	dist/alasql.min.js
@codecov-io
Copy link

codecov-io commented Mar 22, 2017

Codecov Report

Merging #847 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #847      +/-   ##
===========================================
+ Coverage    67.73%   67.75%   +0.01%     
===========================================
  Files            1        1              
  Lines         9881     9886       +5     
  Branches      2949     2949              
===========================================
+ Hits          6693     6698       +5     
  Misses        3188     3188
Impacted Files Coverage Δ
dist/alasql.fs.js 67.75% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5814b8...5175edb. Read the comment docs.

Copy link
Member

@mathiasrw mathiasrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really awesome. Thank you for taking the time to get it done.

We really should make a test that reflects the issue so we know we dont break this feature in the future.

Please make a copy of test/test000.js and rename to next number in the row of tests (613 as I recall) and try to replicate a scenario that this PR fixes?

@kanghj
Copy link
Contributor Author

kanghj commented Mar 23, 2017

@mathiasrw, I'll probably need help on the tests. This scenario here only affects localstorage, but all the tests seem to be running in a node environment, how do I test local storage specific code?

@mathiasrw
Copy link
Member

Of cause...

I suggest you do a

npm install --save-dev node-localstorage

and make a test that starts with

if (typeof localStorage === "undefined" || localStorage === null) {
  var LocalStorage = require('node-localstorage').LocalStorage;
  localStorage = new LocalStorage('./testxxx.localstorage');
}
```

Then everything should work :)

kanghj added 4 commits March 26, 2017 10:13
Conflicts:
	dist/alasql-worker.js
	dist/alasql-worker.min.js
	dist/alasql.fs.js
	dist/alasql.js
	dist/alasql.min.js
@kanghj
Copy link
Contributor Author

kanghj commented Mar 26, 2017

@mathiasrw, I have modified an existing test to only pass with the modifications added in this PR. Looks like there was support for writing LocalStorage tests in alasql already after all! Very cool. Unfortunately, there are other places where autoincrement for locastorage ought to work, but somehow still isn't (e.g. test389 when AUTOCOMMIT is off), I'll investigate them.

@mathiasrw
Copy link
Member

mathiasrw commented Mar 26, 2017

Really nice work.

Let me know when to merge the PR.

@mathiasrw
Copy link
Member

Any news on this?

@kanghj
Copy link
Contributor Author

kanghj commented Apr 6, 2017

Sorry, I got a bit busier than expected and this was a little harder to track down than I thought... Perhaps let's merge this PR first, but not close the issue. I'll work on this sometime next weekend when I have more time.

@mathiasrw mathiasrw dismissed their stale review August 5, 2018 19:48

Merging as its better to add a fix to part of the problem than to add no fix.

@mathiasrw mathiasrw merged commit 6d43479 into AlaSQL:develop Aug 5, 2018
mathiasrw added a commit that referenced this pull request Nov 19, 2025
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: mathiasrw <[email protected]>
Co-authored-by: Mathias Wulff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants