billysometimes / rethinkdb

dart driver for rethinkDB
MIT License
37 stars 19 forks source link

dbCreate is not working as expected #25

Closed kubeliv closed 9 years ago

kubeliv commented 9 years ago
await r.dbCreate(dbName).run(conn).catchError((err) {
  print(err.message);
  print(err.frames);
});

Returns:

Expected 1 argument but found 0.
[]
billysometimes commented 9 years ago

Is dbName defined? If it is null then you would receive that error.

kubeliv commented 9 years ago

I actually have a print right before it, that does prove it's not null, sorry I did not include that.

billysometimes commented 9 years ago

Would you mind posting your full code? I haven't been able to reproduce the issue

kubeliv commented 9 years ago

Here's an example showing the problem(I can reproduce it here as well). https://github.com/logangorence/rethinkdb_issue25

kubeliv commented 9 years ago

You won't be able to use my server, but it does show the same problem.

billysometimes commented 9 years ago

Thanks, that was a big help. Fixed in 2.0.3+1!