Permalink
Commits on May 30, 2012
  1. always use database encoding for the column names (like in SQLite)

    this fixes to_yaml outputting all column names with !binary
    
    Signed-off-by: clst <cs@apl.li>
    committed May 30, 2012
Commits on May 29, 2012
  1. apply database connection encoding to string columns

    clean up line endings
    
    Signed-off-by: clst <cs@apl.li>
    committed May 29, 2012
Commits on May 10, 2012
  1. Merge branch 'rails31' of git://github.com/in4systems/activerecord-sq…

    …lanywhere-adapter.git into rails32
    
    * 'rails31' of git://github.com/in4systems/activerecord-sqlanywhere-adapter.git:
      Remove accidental debugger line.
      Fix using distinct with arel.
    committed May 10, 2012
  2. Remove accidental debugger line.

    Chris Couzens committed May 10, 2012
  3. Fix using distinct with arel.

    Chris Couzens committed May 10, 2012
Commits on May 8, 2012
  1. fix: ActiveRecord::ConnectionAdapters::SQLAnywhereException: Cannot c…

    …onvert '2012-05-08 14:06:16 +0200' to a timestamp
    
    date & datetime in local time works because this is ASA default and consistent with date columns
    probably breaks something for rails' default timestamps in UTC.
    
    TODO: look into TIMESTAMP WITH TIME ZONE
    
    Time.to_s :db is identical to DateTime.to_s :db
    Claudius Steinhauser committed May 8, 2012
Commits on Apr 20, 2012
  1. Merge pull request #1 from in4systems/rails31

    Rails31 in4systems merge
    committed Apr 20, 2012
Commits on Apr 4, 2012
  1. Find the major version of SQLAnywhere.

    Don't run the indexes of SQLAnywhere earlier than 11.
    Chris Couzens committed Apr 4, 2012
  2. New version of Active record was producing an error.

    The to_sql method was trying to access @visitor but finding nil.
    Does this fix it?
    Chris Couzens committed Apr 4, 2012
Commits on Apr 3, 2012
Commits on Mar 29, 2012
  1. Fixed the ActiveRecord::Result does not support -@ error.

    This was due to rails expecting to have the number of affected rows after a delete, but instead having a (empty?) result set.
    Chris Couzens committed Mar 29, 2012
Commits on Mar 21, 2012
  1. allow connection_string in the database.yml.

    Fix binding of nils. (nil Integers were being saved as 0).
    
    Attempt to fix problem with aggregate calculations on groups.
    Chris Couzens committed Mar 21, 2012
Commits on Mar 20, 2012
  1. Change top (x) to top x.

    It's strange that I wasn't getting the error on Thriftwood
    Chris Couzens committed Mar 20, 2012
Commits on Mar 19, 2012
  1. bump version

    Chris Couzens committed Mar 19, 2012
Commits on Mar 8, 2012
  1. Handle nulls of type decimal.

    Also, remove redundant line.
    Chris Couzens committed Mar 8, 2012
  2. Revert changes where I used bit instead of tinyint for boolean.

    Tinyint now works for boolean (which it didn't previously).
    Chris Couzens committed Mar 8, 2012
Commits on Mar 7, 2012
  1. Fix deleting multiple columns.

    Sometimes, column_names would be an array inside an array.
    Chris Couzens committed Mar 7, 2012
  2. Make bit columns nullable by defualt.

    Chris Couzens committed Mar 7, 2012
  3. Added purge task (required for testing).

    Use bit for boolean (as it can be null).
    Chris Couzens committed Mar 7, 2012
Commits on Mar 6, 2012
  1. handle numeric data types.

    Previously, you might get a numeric as the result of a calculation involving decimal types.
    Previously, this would be converted to a ruby string type.
    Now, it is converted to BigDecimal.
    Chris Couzens committed Mar 6, 2012
Commits on Mar 2, 2012
  1. Fix handling of offsets.

    Pagination would fail everytime before hand.
    Chris Couzens committed Mar 2, 2012
  2. Change the remove_column method to take an array of columns to drop.

    This is what active records expects.
    Chris Couzens committed Mar 2, 2012
  3. Actually fix how Arel::Visitors is included.

    Better error reporting.
    Most uses of SQLAnywhereInterface check their return values.
    Errors no longer silently fail.
    Chris Couzens committed Mar 2, 2012
Commits on Mar 1, 2012
  1. Fix binding date types.

    Chris Couzens committed Mar 1, 2012
  2. Fix joining tables.

    Before this change, the join part of the SQL statement would be missing.
    Chris Couzens committed Mar 1, 2012
  3. Fix primary key method

    Chris Couzens committed Mar 1, 2012
  4. Change how the primary key is calculated.

    Chris Couzens committed Mar 1, 2012
  5. Make the adapter tolerant against changing capitalization only in col…

    …umn names.
    Chris Couzens committed Mar 1, 2012
  6. Fix id_value error

    Chris Couzens committed Mar 1, 2012
  7. Fix Model.first.

    The changes are in lib/arel/visitors/sqlanywhere.rb and sqlanywhere_adapter.rb:455
    
    Also, indented.
    Chris Couzens committed Mar 1, 2012
Commits on Feb 29, 2012
  1. Create the last_inserted_id method.

    Chris Couzens committed Feb 29, 2012
  2. Fix the adapter to run through our seed file.

    Binary and decimal binds need to be handled specially.
    Chris Couzens committed Feb 29, 2012
  3. Fix primary_key

    Chris Couzens committed Feb 29, 2012
  4. Move the removal of quotes around column default to the SQL.

    Now that I'm looking at the changes, I realize this probably wasn't needed.
    Chris Couzens committed Feb 29, 2012