catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

Cannot switch to secondary database #660

Closed jelevuser closed 3 years ago

jelevuser commented 6 years ago

Hello,

When I initiate new medoo object for say database "accounts", I cannot make a select from a table in other database, let's say "users".

$data = $db->select("users.users", "*", [ "id[>]" => "50" ]); // Doesn't work

Is there a fix to this? Also, if we make joins, will it work if tables are from different databases?

Thanks

Andrews54757 commented 6 years ago

Duplicate #119