Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 2, 2010
  1. Bump version to 3.14.0

    authored
Commits on Jul 29, 2010
  1. Update CHANGELOG

    authored
  2. Don't consider unsaved nodes as root nodes

    authored
    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.
Commits on Jul 28, 2010
  1. Make RCTE plugin work when a :conditions option is used

    mluu authored John Firebaugh committed
    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.
  2. Improve error diagnostics.

    John Firebaugh authored
  3. fix mssql bug with select count distint with order

    mluu authored John Firebaugh committed
  4. fixes for mssql #rename_table

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

    John Firebaugh authored
  6. Add #root? method to tree plugin.

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

    authored
  2. Support a :raise_on_failure option for save and destroy that override…

    John Firebaugh authored committed
    …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.
  3. Handle class discriminator column names that are existing ruby method…

    authored
    … 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.
  4. Update CHANGELOG

    authored
  5. Remove LOCAL_DATETIME_OFFSET_SECS and LOCAL_DATETIME_OFFSET constants

    authored
    Also, mark a spec as pending when using the do adapter (except on
    SQLite).
  6. @phiggins
  7. @phiggins
  8. @gcampbell

    Don't hardcode UTC offsets in test

    gcampbell authored
    The test only worked if you happened to be running it on the West Coast.
    Use correct local offsets.
  9. @gcampbell

    Fix Daylight Savings offsets for DateTimes.

    gcampbell authored
    A local Standard DateTime loaded during local Daylight Savings should
    now have the standard offset rather than daylight.
  10. @gcampbell

    Fix Time utc timezones

    gcampbell authored
    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
    differences.
    
    DateTimes still need to be fixed.
  11. @gcampbell

    Add failing test for timezone support.

    gcampbell authored
    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).
Commits on Jul 22, 2010
Commits on Jul 21, 2010
  1. Handle literalization of OCI8::CLOB objects in the native Oracle adapter

    authored
    Thanks hassox for testing this.
  2. Prevent an ArgumentError being raised instead of a Sequel::Error if m…

    authored
    …igration current or target version doesn't exist
    
    Thanks manveru for pointing this out.
Commits on Jul 17, 2010
Commits on Jul 14, 2010
Commits on Jul 13, 2010
  1. @djwhitt

    Prepend schema to table name in OCI8 describe_table call

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

    authored
    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.
Commits on Jul 8, 2010
  1. Make Model dataset's destroy method respect the model's use_transacti…

    authored
    …ons setting, instead of always using a transaction
Something went wrong with that request. Please try again.