Comments (4)
Please replicate this in a test and I'll take a look. Thanks.
from fastlegs.
How would I go about doing this so that you can verify it?
Are you saying that the above code should run without any issue?
from fastlegs.
PostgreSQL
+++++++++
Column (Type)
connection_id (integer)
recipient_id (integer)
account_id (integer)
approved_on (timestamp with time zone)
is_private (boolean)
id (integer)
started_on (timestamp with time zone)
Node.js
++++++
Test 1.
var where = {
'approved_on.ne': null
};
-- The above DOES NOT work (approved_on column has 2013-03-17 22:30:03.228+00 value in it)
i.e. It should return the row since it is not null but doesn't.
Test 2.
var where = {
'approved_on': null
};
-- The above DOES work (approved_on column has NULL value in it)
Test 3.
var where = {
'is_private': false
};
-- The above DOES work (is_private column has FALSE value in it)
It seems that ne (not equal) does not work with timestamp.
Is it because of FastLegs or PostgreSQL ?
from fastlegs.
I jsut used 'approved_on.lt': ... problem solved however the issue still exist
from fastlegs.
Related Issues (20)
- README Update? HOT 1
- in functionality is buggy. HOT 2
- FastLegs include/join for multi-relationship tables/ circular dependency HOT 3
- Full Text Search HOT 1
- $or doesn't seem to work HOT 2
- $or doesn't seem to work HOT 2
- Clearing values in database using null, '' or undefined does work HOT 1
- Distinct Clause
- Group By Clause
- Batch size option for bulk inserts HOT 1
- `order` no working HOT 2
- Make node 0.8 compatible HOT 1
- or null operator for WHERE clauses
- Support for auto created/updated timestamp columns
- Limit/Offset Issue
- TypeError: Object 1 has no method 'forEach' HOT 3
- PostgreSQL Date Issue
- Support for FastLegS? HOT 2
- More complex Logic HOT 1
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 fastlegs.