Skip to content

Releases: jruby/activerecord-jdbc-adapter

1.3.12 (11/18/14)

26 Jan 16:02
Compare
Choose a tag to compare
  • [sqlite] support for latest JDBC 3.8
  • [mysql] correctly map config[:encoding] into Connector-J characterEncoding
  • [mysql] backport rename_index from Rails (corectly handling MariaDB as well)
  • [mysql] core adapter compat - missing initialize_schema_migrations_table
  • supports_views? is now a method available in 4.2 (most DBs support VIEWs)
  • [postgres] table_exists? fully compatible with Rails 4.1
  • handle pre JDBC 4 driver abstract method errors somehow gracefully
  • tune ArJdbc scoped warnings/deprecations (can be off -J-Darjdbc.warn=false)

1.3.11 (10/20/14)

26 Jan 16:02
Compare
Choose a tag to compare
  • arjdbc: performance improvement - avodinng JRuby's impl iface generation
  • [firebird] Use ampersand literal in limit offset sub to fix FIRST 1/SKIP 1
  • require super call is not needed and causes issues double loading features

1.3.10 (08/29/14)

29 Aug 10:40
Compare
Choose a tag to compare
  • [postgres] preliminary (temp) fix for Marshal.dump broken since 1.3.8 (#573)
  • [postgres] adapter was missing the custom rename_index method (fixes #577)
  • [postgres] user defined types should not raise an error
  • [postgres] align with Rails distict white-space fix (regression in 4.0.10)
  • [mssql] allow for offset(x) without limit(y) to work ... (fixes #564)
  • [mssql] correctly parse set_table_name string with owner (#574)
  • allow database.yml or config option to set :insert_returning (#570)
  • [sqlite3] savepoint without passed explicit name not supported
  • synchronize setting resolved visitor type
  • [mssql] - (hopefully) fix ORDER BY mis-detection - closes #532 (improved #549)
  • [mysql] columns were sometimes instantiated with the wrong column class (#566)

1.3.9 (07/07/14)

07 Jul 10:32
Compare
Choose a tag to compare
  • [postgres] improve Range's type cast - fixing minor quoting failure on AR 4.x
  • [postgres] range type's :exclude_start is actually += 1 (align with AR 4.1)
  • [postgres] correctly quote numeric values with string/text column types
  • [postgres] backport CVE-2014-3483 and protect against CVE-2014-3482 (from AR)

1.3.8 (06/27/14)

27 Jun 18:23
Compare
Choose a tag to compare
  • [mysql] updated so that we can run with non-official driver (+ against MariaDB)
  • [postgres] quote fix failure with ColumnDefinition on AR 4.0.6.rc2
  • [mssql] performance improvements :
    • "optimized" quote_name_part in Java + avoid bytes copying in quoteCharWith
    • throwing exceptions in the hot path results in slow code
    • minor performance improvements to mssql type_cast
  • [mssql] fix remove_column on AR < 3.2
  • [mssql] dealing with column that need quoting (e.g. ids with spaces) in ORDER
    special care needs to be performed on AR <= 3.2 - Arel < '4.0' (closing #551)
  • [mssql] correct default value quoting + update on change when non null with default
  • [mssql] backport database ('.' in name) quoting fix from sqlserver adapter
  • get the "correct" (AR::Base) record.class on AR 4.1 (#555)
  • [oracle] support disabling generated keys -Darjdbc.oracle.generated_keys=false
  • [postgres] fix returning generated keys + use arjdbc.postgresql.generated_keys
  • [oracle] working config[:insert_returning] = true support (using prepared calls)
  • [mysql] improve column instantiation - make sure strict/extra passed correctly
  • [postgres] backport rails fix for not quoting array defaults correctly
  • [postgres] handle the accessor (e.g. for hstore) added in AR 4.1 (#535)
  • [postgres] handle oid_types resolution on AR 4.x (compat with MRI on Rails)
  • [postgres] align Column's (string) cast helpers with AR 4.1
  • [postgres] quote/cast compat with 4.x + do not quote default function values
  • [postgres] align array parser with latest from AR 4.1
  • [postgresl] Column AR 4.x compatibility methods: number? and text?
  • [h2] should have it's own arel visitor class (Arel::Visitors::H2)
  • [h2] support for latest beta of next major release - H2 database 1.4

Code Contributors (in no particular order): @mjc

1.3.7 (04/14/14)

14 Apr 20:17
Compare
Choose a tag to compare
  • [postgres] set prepared values with array columns on AR < 4.0 correctly
  • [postgres] handle null values in array columns with AR < 4.0 (fixes #548)
  • [mysql] support for config[:reconnect](might need some fine tuning to match mysql2)
  • fix ordering on an aggregate in MSSQL (#532) (should fix #437 for good)
  • introduce a deprecation (warn) method for AR-JDBC and start using it
  • [mysql] do not set defaults for text/blob columns on rename/change (#543)
  • try resolving config 'database' (if missing) from JDBC url: in rake tasks
  • [mysql] needs to reconnect! when recreating database (fixes #539)
  • remove_column compatibility with Rails 4.x for Oracle, Derby and MSSQL (#541)
  • Fix connection without user and password (#542)
  • fix db2 remove_column for ActiveRecord 4 (#537)
  • FireBird's DB meta-identifier is 31 chars maximum, thanks @mariuz (#538)
  • [derby] add emulate booleans option for derby adapter

Code Contributors (in no particular order): @mark100net, @pierrickrouxel, @iaddict

1.3.6 (02/04/14)

04 Feb 07:49
Compare
Choose a tag to compare
  • fix rails 4-0-stable compatibility (see #530)
  • [mysql] support "disabling" abandoned connection cleanup thread
  • [mssql] Handling of 'GROUP BY' and selected columns (#529)
    • SELECT DISTINCT clause with ORDER BY for MSSQL (partially fixes #437)
  • [derby] only do the patched select_limited_ids if connection is Derby's
  • [derby] support getting and setting transaction isolation on a connection
    • allow to configure whether isolation will be 'serializable' (work-around for #497)
  • match 'int' as well as 'integer' when converting to SQL types for MSSQL (#527)

Code Contributors: @seandmccarthy, @jesk, @etehtsea

1.3.5 (01/10/14)

10 Jan 11:54
Compare
Choose a tag to compare

We're now green against Rails 4.1 (master), test and report issues if any.

  • improved support for config[:jndi] with all supported custom adapters
  • [mysql] fix incompatible character encodings: ASCII-8BIT and UTF-8
  • rails 4.1 - create_table_definition changed from 3 to 4 parameters (#522)
  • [firebird] Insert quotes for blobs to prevent failed inserts on not-null cols

Code Contributors: @rzane, @garysweaver

1.3.4 (12/12/13)

12 Dec 11:09
Compare
Choose a tag to compare
  • [postgres] unwrap connection instead of casting when adding custom types (#515)
  • [postgres] allow returning string values for (JDBC) arrays with (#510)
  • allow for symbol keys with custom JDBC properties in config[:properties]
  • replacing use of AR::ConnectionFailed with AR::ConnectionNotEstablished (#513)
  • [firebird] fix for missing args when visit_Arel_Nodes_SelectCore is called
  • [postgres] better column compatibility with 3.x (avoid array/oid_type)
  • [postgres] backport array-parser due Column#extract_default (#504)
  • [postgres] backported "Correctly parse bigint defaults in PostgreSQL"
  • [postgres] 4.0 compat - detect default_function just like on MRI
  • [postgres] backport support for negative money values (in parenthesis)
  • [postgres] support :login_timeout as a standalone config option
  • [firebird] align prefetch_primary_key? with Oracle (only for simple PKs)
  • [oracle] do not pre-fetch the primary key if multiple primary keys exist (#498)

Code Contributors: @andfx, @gstark, @rzane, @chapmajs

1.3.3 (11/12/13)

12 Nov 11:59
Compare
Choose a tag to compare
  • [mysql] allow encoding to be server-detected (using encoding: false)
    due compatibility we still default to encoding: utf8 if not set (fixes #481)
  • need to match AR 4.0 built-in patterns to re-define (oracle) tasks correctly
  • [postgres] support some of libpg's ENV variables when connecting
  • [derby] allow multiple parallell nested transactions on DERBY
  • [mssql] when using the Microsoft SQL Server driver, fall back to
    rollback_savepoint when release_savepoint is called (#484)
  • [mysql] only kill the connections cancel timer for driver < 5.1.11
  • [sqlite3] work-around driver ignoring passed schema for table (fixes #483)
  • now using explicit adapter classes with H2/HSQLDB
  • [postgres] Add support for array as root element in JSON (#491)
  • [postgres] MRI compat - make sure we have a query method (fixes #486)
  • db:structure:load does not create schema for test db (#480)

Code Contributors (in no particular order): @ruprict, @jcxplorer, @jamuc,
@nubbel, @seandmccarthy, @donv