Permalink
Browse files

Update CHANGELOG and minor spec change for the MySQL tinyint boolean …

…conversion fix
  • Loading branch information...
1 parent 13bade7 commit 5a0c2422a9a9effaab2449a181cfd1d193e02970 @jeremyevans committed Apr 29, 2010
Showing with 6 additions and 1 deletion.
  1. +3 −1 CHANGELOG
  2. +3 −0 spec/adapters/mysql_spec.rb
View
@@ -1,10 +1,12 @@
=== HEAD
+* Make native MySQL adapter's tinyint to boolean conversion only convert tinyint(1) columns and not larger tinyint columns (roland.swingler) (#294)
+
* Fix use of limit with distinct on Microsoft SQL Server (jeremyevans) (#297)
* Correctly swallow errors when using :ignore_index_errors in Database#create_table when using unsupported indexes (jeremyevans) (#295)
-* Fix returning autogenerated keys when using the 5.1.12 MySQL JDBC driver (viking)
+* Fix insert returning the autogenerated key when using the 5.1.12 MySQL JDBC driver (viking)
* Consider number/numeric/decimal columns with a 0 scale to be integer columns (e.g. numeric(10, 0)) (jeremyevans, QaDes)
@@ -115,6 +115,9 @@ def logger.method_missing(m, msg)
@ds.delete
@ds << {:b=>false, :i=>0}
@ds.all.should == [{:b=>false, :i=>0}]
+ @ds.delete
+ @ds << {:b=>true, :i=>1}
+ @ds.all.should == [{:b=>true, :i=>1}]
end
specify "should return all tinyints as integers when unset" do

0 comments on commit 5a0c242

Please sign in to comment.