-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot insert nested document that contains r.now() or a Date object #13
Comments
Even this fails with the same error: var r = require('rethinkdbdash')({
db: 'test',
min: 0,
max: 1,
bufferSize: 0
});
r.table('test').insert({
field: 'test',
field2: { nested: 'test' },
date: new Date()
}).run().finally(function () {
r.getPool().drain();
}); Must be dates in general |
Hum, I may have broken something when I fixed #10 I'll look into that. |
All theses tests works fine for me with Node 0.11.10 @jmdobry -- which version of rethinkdbdash are you using? |
@neumino [email protected] Node v0.10.26 |
@neumino I'm also still on RethinkDB 1.11.3. Should rethinkdbdash work with that version? |
@jmdobry -- it should work as long as you don't use the commands that were changed ( I just tried with Node 0.10.26 and I don't have any problem to run your scripts. The documents get properly inserted. Can you try with 0.11.4 to see if it was because of |
@neumino It worked. Thanks. |
Ah cool, I'm glad we could sort it out. Thanks for reporting the bug! |
The following throws an error:
Error:
While both of the following work fine:
The text was updated successfully, but these errors were encountered: