Commits on Aug 2, 2010
  1. Bump version to 3.14.0

    committed Aug 2, 2010
Commits on Jul 29, 2010
  1. Update CHANGELOG

    committed Jul 29, 2010
  2. Don't consider unsaved nodes as root nodes

    This is a judgment call, as I can see the argument for
    having new nodes be considered as a root if they haven't
    explicitly set the parent_id column.  However, I think
    this is a better default.  For one, it better handles
    default values, either set by the database or in a before
    save hook.
    committed Jul 29, 2010
Commits on Jul 28, 2010
  1. In the Schema plugin, allow setting schema and creating table in one …

    John Firebaugh committed Jul 14, 2010
  2. Make RCTE plugin work when a :conditions option is used

    The conditions option has to be handled differently than normal associations. It must be respected in the recursive CTE otherwise we may select orphaned records.
    In order for a condition to work, it must reference qualified columns because the recursive select statement effectively selects from the source table twice. And in order for qualified conditions to work, I had to change the last select statement of the generated sql to alias 't' to the natural table name.
    mluu committed with John Firebaugh Apr 20, 2010
  3. Improve error diagnostics.

    John Firebaugh committed May 14, 2010
  4. fix mssql bug with select count distint with order

    mluu committed with John Firebaugh Jul 26, 2010
  5. fixes for mssql #rename_table

     - use lower case sp_rename, needed when target database uses a case-sensitive collation
     - account for schema bound tables
    mluu committed with John Firebaugh Jun 15, 2010
  6. Add :single_root option to tree plugin.

    John Firebaugh committed Jul 28, 2010
  7. Add #root? method to tree plugin.

    John Firebaugh committed Jul 28, 2010
  8. This is no longer true now that the rcte_tree plugin uses the tree pl…

    John Firebaugh committed Jul 28, 2010
Commits on Jul 27, 2010
  1. Update CHANGELOG

    committed Jul 27, 2010
  2. Support a :raise_on_failure option for save and destroy that override…

    …s the raise_on_save_failure setting
    This is useful in library contexts where it is necessary to enforce or
    prohibit raising without perturbing the existing raise_on_save_failure
    setting (for example, to implement an ActiveRecord-like save! method).
    Before, this would have required a begin/set/ensure/reset dance.
    While here, update and clarify the documentation for save, and rename
    save_failure and update its usage to reflect its new behavior.
    John Firebaugh committed with Nov 23, 2009
  3. Handle class discriminator column names that are existing ruby method…

    … names in the single table inheritance plugin
    Sequel usually calls methods to get column values instead of just
    checking the values hash, as it is more flexible.  However, in
    some cases it can be problematic.  This is one of those cases.
    committed Jul 27, 2010
  4. Update CHANGELOG

    committed Jul 27, 2010

    Also, mark a spec as pending when using the do adapter (except on
    committed Jul 27, 2010
  6. Don't hardcode UTC offsets in test

    The test only worked if you happened to be running it on the West Coast.
    Use correct local offsets.
    gcampbell committed Jul 27, 2010
  7. Fix Daylight Savings offsets for DateTimes.

    A local Standard DateTime loaded during local Daylight Savings should
    now have the standard offset rather than daylight.
    gcampbell committed Jul 27, 2010
  8. Fix Time utc timezones

    We now use the UTC offset of the time in question, rather than the UTC
    offset of the current time.  This accounts for daylight savings time
    DateTimes still need to be fixed.
    gcampbell committed Jul 27, 2010
  9. Add failing test for timezone support.

    There is a bug which causes times to be read from the database
    incorrectly if they should have a different UTC offset than the current
    local time. (i.e. if current local time is adjusted for Daylight Savings
    and the time in the database is not, or vice versa).
    gcampbell committed Jul 27, 2010
Commits on Jul 22, 2010
Commits on Jul 21, 2010
  1. Handle literalization of OCI8::CLOB objects in the native Oracle adapter

    Thanks hassox for testing this.
    committed Jul 21, 2010
  2. Prevent an ArgumentError being raised instead of a Sequel::Error if m…

    …igration current or target version doesn't exist
    Thanks manveru for pointing this out.
    committed Jul 21, 2010
Commits on Jul 17, 2010
Commits on Jul 14, 2010
Commits on Jul 13, 2010
  1. Prepend schema to table name in OCI8 describe_table call

    Ran into problems when the same table name appeared in multiple schemas.
    This fixed it.
    djwhitt committed Jul 13, 2010
Commits on Jul 9, 2010
  1. Fix Database#each_server when using a connection string to connect

    Database#each_server takes the options from the given server and
    passes them to Database.connect.  However, if a connection string
    was used instead of an options hash, the :adapter option may not
    have been filled in, which made Database.connect raise an
    exception.  Fix this by explicitly populating the :adapter option
    when using a connection string.
    committed Jul 9, 2010
Commits on Jul 8, 2010
  1. Make Model dataset's destroy method respect the model's use_transacti…

    …ons setting, instead of always using a transaction
    committed Jul 8, 2010