This project is archived and is in readonly mode.

#1122 ✓committed

Cross-DB Joins Broken for MySQL

Reported by pipegeek | September 26th, 2008 @ 08:35 PM

Not specifying a database when connecting to a mysql server is allowed. Doing so allows one to refer to tables in different databases on the same server in the same query, which is often useful. Support for this is actually already present in vendor/mysql.rb, but is specifically disabled in connection_adapters/mysql_adapter.rb (if no :database argument is specified to establish_connection, an exception is thrown). Removing this check allows cross-db joins.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by