Skip to content

Releases: jruby/activerecord-jdbc-adapter

1.3.24 (09/24/17)

25 Sep 08:03
Compare
Choose a tag to compare
  • [as400] Fixed ordering when limit and offset present (#789)
  • [postgres] limit driver version correctly since > 9.4.1206 might break
  • [db2] fixed issue with serialization not happening (#795)
    resolves #725 (serialize with custom class not working on AR 4.2)
  • reconnect!/disconnect! shall call super to reset cache/transaction state
  • [oracle] some ~ enhanced adapter compatibility with configuration
  • [mysql] support setting collation: xxx with config[:encoding] like AR 4.2
  • [as400] Check if the exception thrown is a false-positive (#792)
  • [as400] Added truncate functionality for DB2/AS400 (#793)
  • [as400] Added DatabaseTasks for the as400 (#791)

1.3.23 (05/14/17)

25 Sep 08:03
Compare
Choose a tag to compare
  • specify gem 'activerecord' < 5 since 5.x is not supported in 1.3.x
  • [postgres] get non-seq id inserts working when insert_returning: false (#716)
  • [postgres] previously-deprecated -i switch to pg_dump is no longer supported
    (in PostgreSQL 9.5) (#729)
  • [postgres] Assume that primary key can be multiple values (#773)
  • prevent multiple pushes of the adapter file onto $LOADED_FEATURES

1.3.20 (03/09/16)

14 Mar 08:14
Compare
Choose a tag to compare
  • Retrieve AM::Type::Boolean::FALSE_VALUES for Rails 5 (#705)
  • [mysql] only mock mysql / mysql2 error under adapter /mysql/
    and make sure db:create works (#702)
  • use system instead of `` to run dumps (on < 4.0) as it has issues under 1.7.x
  • avoid column.default type_cast-ing on AR 4.2 (#715)
  • [postgres] data_sources support - backport on AR 4.2
  • add support for data sources (backport on AR 4.2) in base (jdbc) adapter
  • [derby] Enable DDL transaction on Derby (#714)
  • [db2] support for DB2 big integer (BIGINT) data type
  • [mysql] Fixed MySQL primary key for MySQL >= 5.7.3 (#695)
  • [sqlite] on AR 4.2 is not supposed to have an implicit string limit: 255
  • [postgres] on AR 4.2 is not supposed to have an implicit string limit: 255

1.3.19 (11/02/15)

02 Nov 13:19
Compare
Choose a tag to compare
  • [sqlite] add supports_partial_index? and remove duplicate support_index_sort_order?
  • [sqlite] fix missing save-point removal in release_savepoint
  • test and fix current savepoint_name compatibility with AR versions (mostly 4.2)
    • adjust returned current savepoint name to better match with AR (< 4.2)
    • make sure savepoint rollback behave AR compatibly
  • [mysql] revert to extracting BIT into an int as tinyint(1) (#687)
  • [mysql] do not validate connection_alive_sql as there's a special /* ping */ query
  • support timeouts on connection validation with config[:connection_alive_timeout]

1.3.18 (09/14/15)

14 Sep 13:34
Compare
Choose a tag to compare
  • since arel visitor instances might get re-used we need to avoid the @instance
  • [postgres] work-around BC time parsing issue (on JRuby 1.7.x) by a patch
  • [mssql] fix broken ordering on an aggregate queries (from #646 closing #532)
  • [mssql] default to using a string limit: 4000 with newer AR
  • [mssql] setup type map for SQLServer ... backwards compat as much as possible
  • for better AR alignment on 4.2 shall do the AR type-casting of booleans/dates
  • [mssql] ... port over visitor from sqlserver-adapter (to be used on AR 4.2)
  • [mssql] allow to tune collation equality operator with cs_equality_operator
  • [mssql] setup BINARY/TEXT types as binary_basic/text_basic (needed on 4.2)
  • [mssql] setup a NATIVE_DATABASE_TYPES constant (for SQLServer > 2K) (#508)
  • [jdbc] prefer BIT(1) as a better match for :boolean type than TINYINT
  • [mssql] get_table_name bug with unusual queries has been fixed (#583)
  • [mssql] make sure we set @primary on column instances even on AR 4.2
  • [mssql] issue when using joins with distinct (#590) ... fixed with #608
  • [firebird] tune arel visitor (limit/offset handling) to work on AR 4.2
  • [firebird] avoid prefetch_primary_key? depending on column.primary due AR 4.2
  • [firebird] introduce type map on AR 4.2 (not sure about :timestamp handling
  • [firebird] boolean parameter with prepared-statements should be set as CHAR
  • [firebird] standalone column and adapter classes +
    standalone custom (native) JdbcConnection class for firebird due CHAR handling
  • [firebird] handle schema-prefixed table names in default_sequence_name
  • [oracle] support for handling NUMBER(1) type as boolean just like on AR < 4.2
  • [oracle] generic optimized NUMBER type extraction (with scale == 0 as integer)
  • [oracle] support XMLTYPE as a custom type on AR 4.2
  • [oracle] add disable_referential_integrity helper (for the duration of a block)
  • base (adapter: jdbc) foreign_keys support for all (for AR 4.2 compatibility)
  • [oracle] AR 4.2 type map support (ported over from oracle-enhanced adapter)
  • [oracle] avoid error logging optional DROP SEQUENCE on drop_table
  • [oracle] default config[:database](when not provided) to XE
  • [oracle] improved index + primary_key (detection) support not just for AR 4.2
  • [oracle] update default_sequence_name to strip prefix + add trigger name
  • [oracle] set statement_escape_processing: true by default on AR 4.x (#479)
  • handle serialized attributes the AR 4.2 way (serialized_attributes deprecated)
  • [db2] custom type map for AR 4.2 based on IBM_DB gem
  • [db2] support XML as type on AR 4.2
  • type-casting on our native side should now handle AR 4.2 right!
  • jdbc connection should not attempt to type-cast date/time on AR 4.2
  • [db2] arel visitor + handle basic type mapping the AR 4.2 way
  • no longer warn on 4.2 + but still warn with (unsupported) adapters
  • restore Ruby 1.8 (syntax) compatibility - was broken for MySQL/Derby
  • use standard AREL with H2/HSQLDB as H2/HSQLDB support standard LIMIT and OFFSET
  • [h2] working AR 4.2 support
  • [hsqldb] working AR 4.2 support
  • [rake] support adapter: mariadb as if it were mysql (on AR 4.x)
  • [postgres] changes to avoid double cast for AR42 (with prepared statements)
  • [postgres] use standard JDBC bind arguments marker "?" instead of "$n"
  • [postgres] allow reading "infinity" and "BC timestamps on 4.2
  • type cast bind arguments in RubyJdbcConnection (prepared statements)
  • [derby] ActiveRecord 4.2 reports xml columns as XML(2147483647)
  • [derby] working AR 4.2 support
  • support cast_type on the JdbcConnection side for improved AR 4.2 compatibility

1.3.17 (06/30/15)

30 Jun 09:40
Compare
Choose a tag to compare
  • [mysql] bulk compatibility with AR 4.2 - all _sql helper accept an options (hash)
  • [mysql] back-port case sensitive/insensitive comparison
  • [mysql] handle precision for datetimes when doing type_to_sql (AR 4.2 compat)
  • [mysql] foreign key support based on AR 4.2 (#656)
  • [postgres] foreign_key support back-ported from AR 4.2 (#656)
  • moved jndi callbacks to happen outside adapter's initialize (#649, #620)
  • [postgres] AR 4.2 compatibility with SchemaCreation
  • [postgres] re-define lookup_cast_type (AR 4.2) + conn.type_map is public
  • [postgres] override valid_type?(type) (AR 4.2 compatibility)
  • [postgres] back-port change_column updates from AR 4.2 for compatibility
  • [postgres] pass down array_member to hstore_to_string (fixes #647 on AR 4.1)
  • [postgres] on AR 4.2 use core's schema_definitions.rb for improved compat (#644)
  • back-port PGconn hack on AR 4.x (from #655 and following commits)
    to fix #651 as an unfortunate work-around for (non-shareable) AR internals (#652)
  • seems that extension methods won't work in 9K the same as in 1.7.x thus work-around
    (originally reported as jruby/jruby#2533)
  • restore 1.8 compatibility in postgres' adapter (regression in 1.3.16 see #641)

1.3.16 (04/13/15)

13 Apr 20:33
Compare
Choose a tag to compare
  • [h2] allow jdbch2 adapter to use jdbc-h2 1.4 (#639)
  • [postgres] quote and type_cast should not be overriden on 4.2
  • [postgres] fix table column resolution (slightly align it to our needs) on 4.2
  • [postgres] re-arrange Column internals as some helpers end-up on Adapter in 4.2
  • [mysql] change_column table is redefined on AR 4.2 so that it uses _sql version
  • [mysql] more tuning/compatibility backports for AR 4.2 (working booleans #626)
  • [mysql] type-map support copy-pasta from AR 4.2 (closer to full compat) (#617)
  • [postgres] improved support for Amazon Redshift (based on user feedback #403)
  • fixed problem with create table statements with references in MySQL (#629)
  • fix RecordNotUnique reference in ArJdbc::SQlite3 (#634)
  • [postgres] add support for jsonb column type (#633 #635 #637)

1.3.15 (03/09/15)

09 Mar 06:10
Compare
Choose a tag to compare
  • [informix] adapter undefined method 'column_types' with Rails 4.x (#622)
  • improve connection factory Ruby interface impls to match Java method-name (#621)
  • [sqlite] truncate_fake - as due compatibility with do not want a truncate method
  • truncate support 4 all (introduced in AR 4.2 but we let it work in all versions)
  • [postgres] do not double load array_parser (on 4.2)
  • [postgres] connection.truncate impl (AR 4.2 compat)
  • [mysql] back-port missing truncate connection method (since AR 4.2)
  • auto setup type-casting compat (pre 4.2 emulation) 4 all
  • [postgres] backport bigserial key and bigint native type support

1.3.14 (01/28/15)

28 Jan 09:53
Compare
Choose a tag to compare
  • [mysql] Fixed an undefined exception error in type_to_sql for MySQL (#616)
  • [derby] support for empty insert statements (e.g. DbModel.create!) on AR 4.x
  • [db2] revert limit/offset OVER( ORDER BY ) matching as it was not complete (#606)
  • [db2] handle empty INSERT statement (default) VALUES in a way that works on AR 4.x
  • [db2] select return value should be the same as core AR (Array on 3.2) (#607)
  • [mysql] backport bulk change & schema-creation to be compatible with AR 4.x
  • handle possible null values while extracting from XML columns (#615)
  • DateTime columns are returned always as nil values (on Rails 4.2 #613)
  • [oracle] do not override primary= within column methods on AR 4.2
  • handle removed AR Column#primary= method on 4.2 (#609)
  • [oracle] fix missing sequence_name_length method when doing a rename_table
  • [mysql] do not force DEFAULT CHARSET=utf8 when creating new tables
  • [postgres] rename the primary key index when renaming a table in pg
  • [db2] improve create_table on Z/OS (now supporting AR 4.x TableDefinition) (#581)

1.3.13 (11/21/14)

26 Jan 16:02
Compare
Choose a tag to compare
  • handle ("hacked") date/time/timestamp conversion from the JDBC side on 4.2
  • align SQLite's column class resolution with others in 1.3
  • avoid the Column regressions in 1.3.12 caused by backporting too much (#603)