Comments (4)
Hello,
Thanks for the report. What version were you using? Or were you using cloned version of this repo?
Steve
from fsql.
hi
yes, i use a cloned version of this repo.
meanwhile i think i've found whats causing the error, at least changing CachedTable.php Line 229 from
$entries = null;
to
$entries = array();
does let me insert without errors.
from fsql.
Good catch. Possibly some legacy code I didn't notice. So $entries was assigned to empty array if table was not empty, but for empty tables, it was using that NULL. I pushed the fix.
Unfortunately my unit tests are only at like 50% code coverage. Mostly CREATE and SELECT tests.
Otherwise, that definitely would been caught by an INSERT test. If I have some free time this weekend, hopefully I can work on some tests.
from fsql.
I apparently had a test for this in CachedTableTest for the class level test. But I was checking whether the returned entries were empty (as in the php function "empty"). So both null and empty arrays were passing the test. I pushed a fix for the test as well so only empty arrays pass.
Hopefully I'll still work on adding new tests this weekend.
from fsql.
Related Issues (20)
- Prepared Statements HOT 3
- Better Date and Time support
- Views
- Composer Install HOT 3
- Refactor Environment HOT 1
- Fix Insert and update collision detection for multiple column keys HOT 1
- Replace preg_match_all in create table HOT 1
- Adds docs to website HOT 5
- Keys HOT 1
- Fix DELETE HOT 1
- MERGE DELETE and more UPDATE clauses HOT 1
- Make API more like mySQLi
- Delete row problem (1.3.1) HOT 5
- Identity columns (and sequences?) HOT 2
- Subqueries
- Schemas HOT 1
- New ALTER TABLE options HOT 1
- Fix FROM table list split in SELECT HOT 1
- Add full field info from SELECT results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsql.