fuel/core — pull request #671 by krtek4 (2011-11-16 04:03:47+00:00)
Title: Changed the parameter order in Database_Query_Builder_Select::_construct()

The parameter in the parent constructor are the other way around. Thus, the type of the query isn't set correctly at the creation of the Query builder.

This is problematic when you try to do an "INSERT INTO ... SELECT" like this :

\DB::insert('table1')->select(\DB::select('id', 'username')->from('table2))->execute();

The following error is thrown actually :

Only SELECT queries can be combined with INSERT queries in COREPATH/classes/database/query/builder/insert.php on line 123