perl-rethinkdb icon indicating copy to clipboard operation
perl-rethinkdb copied to clipboard

`db->create` & `table->create` appear to use `test` database

Open njlg opened this issue 8 years ago • 1 comments

r->db('foo')->create->run;
print Dumper r->db('foo')->table('entities')->create->run;

Responds with 'Databasetestdoes not exist.' 😞

njlg avatar Aug 15 '16 16:08 njlg

I have a few databases, including test... when I ran your sample above, it created database foo, but then it created the table in the database I passed to default_db() at connection time.

Hope that helps!

Dan.

dwburke avatar Aug 15 '16 18:08 dwburke