History.txt in arel-2.0.10 vs History.txt in arel-2.1.0

- old
+ new

@@ -1,10 +1,57 @@ -== 2.0.10 / 2011/05/14 +== 2.1.0 / 2011/04/30 -* Bug Fixes +* Enhancements - * Fix thread safety issue in ToSql visitor. Thanks Damon McCormick and - Cameron Walters! + * AST is now Enumerable + * AND nodes are now n-ary nodes + * SQL Literals may be used as Attribute names + * Added Arel::Nodes::NamedFunction for representing generic SQL functions + * Add Arel::SelectManager#limit= + * Add Arel::SelectManager#offset + * Add Arel::SelectManager#offset= + * Added Arel::SelectManager#create_insert for building an insert manager. + * SQL Literals are allowed for values in INSERT statements. + * Math operations have been added to attributes, thanks to + Vladimir Meremyanin. + +* Bug fixes + + * MSSQL adds TOP to sub selects + * Assigning nil to take() removes LIMIT from statement. + * Assigning nil to offset() removes OFFSET from statement. + * TableAlias leg ordering fixed + +* Deprecations + + * Calls to `insert` are deprecated. Please use `compile_insert` then call + `to_sql` on the resulting object and execute that SQL. + + * Calls to `update` are deprecated. Please use `compile_update` then call + `to_sql` on the resulting object and execute that SQL. + + * Calls to `delete` are deprecated. Please use `compile_delete` then call + `to_sql` on the resulting object and execute that SQL. + + * Arel::Table#joins is deprecated and will be removed in 3.0.0 with no + replacement. + + * Arel::Table#columns is deprecated and will be removed in 3.0.0 with no + replacement. + + * Arel::Table.table_cache is deprecated and will be removed in 3.0.0 with no + replacement. + + * Arel::Nodes::And.new takes a single list instead of left and right. + + * Arel::Table#primary_key is deprecated and will be removed in 3.0.0 with no + replacement. + + * Arel::SelectManager#where_clauses is deprecated and will be removed in + 3.0.0 with no replacement. + + * Arel::SelectManager#wheres is deprecated and will be removed in + 3.0.0 with no replacement. == 2.0.9 / 2010/02/25 * Bug Fixes