Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Oct 21, 2012

  1. Sascha Depold

    update url to sequel-bit_fields

    authored October 21, 2012

Oct 20, 2012

  1. sqlite: support default DB#transaction_mode accessor

    This accessor allows setting a default transaction mode for new
    transactions, making it easier to write and maintain
    database-independent code.
    
    DB#transaction(:mode => ...) overrides the default transaction mode of
    the database handle.  Additionally, there is now additional validation
    to prevent invalid transaction modes from being used.
    authored October 19, 2012

Oct 19, 2012

  1. sqlite: transaction mode (:immediate|:exclusive) support

    SQLite supports IMMEDIATE and EXCLUSIVE transactions which
    prevents SQLITE_BUSY errors at the expense of concurrent
    performance.
    
    DEFERRED transactions remain the default, but may be
    explicitly specified in case this default behavior changes.
    
    ref: http://search.cpan.org/dist/DBD-SQLite/lib/DBD/SQLite.pm#Transaction_and_Database_Locking
    ref: https://www.sqlite.org/lang_transaction.html
    authored October 19, 2012
  2. Jeremy Evans

    Don't create an index in plugin spec join table

    The default index name is > 40 characters, which fails on Oracle.
    authored October 19, 2012
  3. Jeremy Evans

    Major change in the Database <-> ConnectionPool interface

    Historically, Sequel's connection pool has been completely decoupled
    from the database.  The database originally just provided a
    connection proc to the pool, which the pool called to get a
    connection.  The default connection proc just called connect
    on the database object.
    
    When I added disconnection handling to the connection pool,
    I had to hack it in in an ugly manner, passing the disconnection
    proc option via the opts hash.  I'm planning on further improvements
    that will require more interaction between the database and
    connection pool, and adding another hash entry for a proc is
    not a good idea.
    
    Since AFAIK no one uses custom connection and disconnection procs
    for the connection pool, change things so that the connection
    pool gets a reference to the database object that creates it,
    and just call the connect and disconnect_connection methods
    directly on the database.  As the disconnect_connection method
    was not defined by default, define it as a public method, and
    modify the adapters to make it a public method.
    authored October 19, 2012
  4. Jeremy Evans

    Include SQL::AliasMethods in most pg_* extension objects

    An earlier commit added this module just to PGArray, this
    expands it to other pg_* extension objects.
    authored October 19, 2012
  5. Jeremy Evans

    Note that prepared_statements and update_primary_key plugins are inco…

    …mpatible
    authored October 19, 2012
  6. Jeremy Evans

    Make touch plugin handle touching of many_*_many associations

    Before, the touch plugin would try to update a joined dataset
    for many_*_many associations.  Now, if it detects a joined
    dataset, it just iterates over the associated object and updates
    them individually.
    
    This changes touched_associations class method to return a
    hash keyed by association name symbols instead of dataset
    method symbols.
    authored October 19, 2012
  7. Jeremy Evans

    Shorten description of sequel-bit-fields to a single sentence

    authored October 19, 2012
  8. Sascha Depold

    added sequel-bit-fields

    authored October 19, 2012

Oct 17, 2012

  1. Jeremy Evans

    Update CHANGELOG

    authored October 17, 2012
  2. Jeremy Evans

    Give example combining eager_graph with where/order (Fixes #565)

    authored October 17, 2012
  3. Jeremy Evans

    Fix issues in munkyboy's MSSQL foreign keys commit

    This fixes non-determinism issues in two places.
    
    This fixes foreign_key_list to handle composite foreign keys in the
    correct column order, which could result in incorrect behavior.
    foreign_key_list should always give the :columns entry in the
    order of declared foreign key columns, and that didn't always happen.
    
    This also fixes determinism in the spec.  Since a hash is used
    internally, on ruby 1.8, results can come in any order, so the spec
    should sort before comparison.
    authored October 17, 2012

Oct 11, 2012

  1. Hannes Georg

    Extended the single_table_inheritance plugin to support non-bijective

    mappings.
    authored October 11, 2012

Oct 02, 2012

  1. Trey Dempsey

    Corrected documentation typo for index :opclass.

    authored October 02, 2012
  2. Add MSSQL support for Database#foreign_key_list

    authored October 01, 2012

Sep 30, 2012

  1. Trey Dempsey

    Include Sequel::SQL::AliasMethods in Sequel::Postgres::PGArray to all…

    …ow aliasing PGArrays without having to use Sequel.as()
    authored September 30, 2012

Sep 28, 2012

  1. Trevor Wennblom

    minor documentation typo

    authored September 28, 2012
  2. Jeremy Evans

    Attempt to recognize additional disconnect error on jdbc/sqlserver (F…

    …ixes #561)
    authored September 28, 2012
  3. Jeremy Evans

    Handle failure to create a prepared statement better in the postgres,…

    … mysql, and mysql2 adapters (Fixes #560)
    authored September 27, 2012

Sep 27, 2012

  1. Jeremy Evans

    Make DB2 cope with the clob changes

    DB2 treats clob as blob by default, so if use_clob_is_blob is
    true, it should continue to treat clobs as blobs.
    authored September 27, 2012
  2. Jeremy Evans

    Treat clob columns as strings instead of blobs

    Sequel has never had consistent treatment of clob fields.  Unlike
    blob fields, there is no special Sequel type for clobs, and
    historically, they were treated like blobs in most places, though
    a few adapters treated them like strings.
    
    This changes it so that clobs are treated as strings.  We return
    clob values as strings, not SQL::Blob instances, and have the
    model typecasting code cast clob column values to string instead
    of blob.
    
    This breaks backwards compatibility on some jdbc subadapters,
    since clob values will now be returned as strings instead of
    blobs.  However, as Sequel::SQL::Blob subclasses String, it
    is unlikely that this will cause any issues.  The only case I
    can think off where this will cause an issue is if the database
    requires clob columns to be literalized as blobs instead of
    strings.
    authored September 27, 2012

Sep 26, 2012

  1. Jeremy Evans

    Bump version to 3.40.0

    authored September 26, 2012

Sep 25, 2012

  1. Jeremy Evans

    Add a cubrid adapter for accessing CUBRID databases via the cubrid gem

    Due to issues with CUBRID itself and the cubrid ruby gem, I haven't
    bothered to add spec guards for all of the integration spec failures.
    If the situation improves I will probably do so.
    authored September 25, 2012
  2. Jeremy Evans

    Support Database#schema, #tables, #views, and #indexes on cubrid

    The jdbc/cubrid adapter currently uses the JDBC implementation,
    but this should work on all adapters that access CUBRID.
    authored September 25, 2012
  3. Jeremy Evans

    Recognize string database type as string ruby type

    CUBRID uses the STRING type.
    authored September 25, 2012
  4. Jeremy Evans

    Specifically set the primary key in some tests

    These tests are not testing for whether Sequel can correctly
    parse primary keys from the database, so they shouldn't fail
    just because Sequel doesn't parse the primary keys.
    authored September 25, 2012
  5. Jeremy Evans

    Don't use identifier input/output methods on CUBRID

    CUBRID uses case insensitive identifiers, so it doesn't make sense
    to have an input/output method.
    
    While here, do some reorganization and add some RDoc.
    authored September 25, 2012
  6. Jeremy Evans

    Add a jdbc/cubrid adapter for accessing CUBRID databases via JDBC on …

    …JRuby
    
    Note that this doesn't currently have integration spec guards
    when running the integration tests on CUBRID.  This is due to
    the excessive number of bugs in CUBRID itself.  Once CUBRID
    fixes these bugs, I'll consider adding the spec guards.
    authored September 25, 2012
  7. Jeremy Evans

    Refactor jdbc adapter, remove requires_return_generated_keys?

    Only the jdbc/mysql adapter used this feature, so just move
    the generated keys handling into the jdbc/mysql adapter.
    
    Break out some code into smaller methods for easier overriding.
    Make sure to pass the prepared statement object to last_insert_id
    when inserting.
    
    In mysql/jdbc, use return generated keys for prepared statement
    inserts as well as regular inserts.
    authored September 25, 2012
  8. Jeremy Evans

    Work around possible spec issue

    On some databases, a.b can refer to c.a.b, which breaks this query.
    I think that behavior is stupid, but as this spec is testing
    EXISTS and not the identifier lookup rules, it's best to just
    rename the table and avoid the issue.
    authored September 25, 2012
  9. Jeremy Evans

    Return non-String database defaults as ruby defaults

    Just in case the database default is a non-String value, we
    should return the value as-is instead of breaking later when
    using a regexp for parsing.
    authored September 25, 2012

Sep 24, 2012

  1. Jeremy Evans

    Return OCI8::CLOB values as ruby Strings in the Oracle adapter

    This makes them treated similarly to blobs, which are returned
    as instances of Sequel::SQL::Blob (a String subclass).
    authored September 24, 2012
  2. Jeremy Evans

    Use clob for String :text=>true types on Oracle, DB2, HSQLDB, and Derby

    Previously, attempting to use String :text=>true in a migration
    failed on these databases, since it uses the text type by
    default, and these databases don't support that type.
    authored September 24, 2012
  3. Jeremy Evans

    Allowing marshalling of Sequel::Postgres::HStore (Fixes #556)

    The underlying hash used by the delegate class must use a
    default proc for the symbol=>string conversion, so add
    _dump/_load methods that store the underlying data as
    an array instead of a hash.
    authored September 24, 2012
Something went wrong with that request. Please try again.