Permalink
Browse files

Merge branch 'master' of ssh://work-current/home/billg/sequel

  • Loading branch information...
2 parents f48be32 + 11aafc8 commit 5ad293b29648453e5cea7a0fa95e2212d9a7cf7a @jeremyevans committed Jan 3, 2011
Showing with 69 additions and 2 deletions.
  1. +1 −1 CHANGELOG
  2. +67 −0 doc/release_notes/3.19.0.txt
  3. +1 −1 lib/sequel/version.rb
View
@@ -1,4 +1,4 @@
-=== HEAD
+=== 3.19.0 (2011-01-03)
* Handle Date and DateTime types in prepared statements when using the jdbc adapter (jeremyevans)
@@ -0,0 +1,67 @@
+= New Features
+
+* The add_* association methods now accept a primary key, and
+ associates the receiver to the associated model object with that
+ primary key:
+
+ artist.add_album(42)
+ # equivalent to: artist.add_album(Album[42])
+
+* The validation_class_methods plugin now has the ability to
+ reflect on validations:
+
+ Album.plugin :validation_class_methods
+ Album.validates_acceptance_of(:a)
+ Album.validation_reflections
+ # => {:a=>[[:acceptance, {:tag=>:acceptance, :allow_nil=>true,
+ :message=>"is not accepted", :accept=>"1"}]]}
+
+= Other Improvements
+
+* In the postgres, mysql, and sqlite adapters, typecasting now uses
+ methods instead of procs. Since methods aren't closures (while
+ procs are), this makes typecasting faster (up to 15%).
+
+* When typecasting model column values, the classes of the new and
+ existing values are checked in addition to the values themselves.
+ Previously, if the new and existing values were equal (i.e. 1.0
+ and 1), it wouldn't update the value. Now, if the classes are
+ different, it always updates the value.
+
+* Date and DateTime objects are now handled correctly when using
+ prepared statements/bound variables in the jdbc adapter.
+
+* Date, DateTime, Time, true, false, and SQL::Blob objects are now
+ handled correctly when using prepared statements/bound variables
+ in the sqlite adapter.
+
+* Sequel now uses varbinary(max) instead of image for the generic
+ File (blob) type on Microsoft SQL Server. This makes it possible
+ to use an SQL::Blob object as a prepared statement argument.
+
+* Sequel now handles blobs better in the Amalgalite adapter.
+
+* When disconnecting a connection using the sqlite adapter, all
+ open prepared statements are now closed first. Previously,
+ attempting to disconnect a connection with open prepared statements
+ resulted in an error.
+
+* The license file has been renamed from COPYING to MIT-LICENSE, to
+ make it easier to determine at a glance which license is used.
+
+= Backwards Compatibility
+
+* Because Sequel switched the generic File type from image to
+ varbinary(max) on Microsoft SQL Server, any migrations/schema
+ modification methods that used the File type will now result in a
+ different column type than before.
+
+* The MYSQL_TYPE_PROCS, PG_TYPE_PROCS, and SQLITE_TYPE_PROCS
+ constants have been removed from the mysql, postgres, and sqlite
+ adapters, respectively. The UNIX_EPOCH_TIME_FORMAT and
+ FALSE_VALUES constants have also been removed from the sqlite
+ adapter.
+
+* Typecasting in the sqlite adapters now uses to_i and to_f instead
+ of Integer() and Float() with rescues. If you put non-numeric
+ data in numeric columns on SQLite, this could cause problems.
View
@@ -3,7 +3,7 @@ module Sequel
MAJOR = 3
# The minor version of Sequel. Bumped for every non-patch level
# release, generally around once a month.
- MINOR = 18
+ MINOR = 19
# The tiny version of Sequel. Usually 0, only bumped for bugfix
# releases that fix regressions from previous versions.
TINY = 0

0 comments on commit 5ad293b

Please sign in to comment.