aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Properly discover a connection is closed in postgresql_adapterSteve Klabnik2012-05-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PQstatus doesn't properly test if future operations will succeed. A PQping function is added to libpq in PostgreSQL 9.1, but if we rely on it, everyone on earlier versions of Postgres is out of luck, and the pg gem wouldn't have the 'fix' until the next release. Thanks to @cbrecabarren and @ged for handling all the dirty details. Closes #3392.
* | | Merge pull request #6386 from kennyj/fix_logs_name_consistencyAaron Patterson2012-05-303-18/+15
|\ \ \ | | | | | | | | Fix logs name consistency.
| * | | Fix logs name consistency.kennyj2012-05-193-18/+15
| | | |
* | | | SchemaMigration should be loaded lazily.kennyj2012-05-291-1/+0
| |_|/ |/| |
* | | Merge pull request #5872 from evtuhovich/prepared_statement_fixAaron Patterson2012-05-251-10/+10
|\ \ \ | | | | | | | | Remove prepared statement from system query in postgresql adapter
| * | | Remove prepared statement from system query in postgresql adapterIvan Evtukhovich2012-05-121-10/+10
| | | |
* | | | Merge pull request #5244 from fotos/myqsl2_wait_timeoutRafael Mendonça França2012-05-251-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | Maximum wait_timeout on Windows is 2147483
| * | | Maximum wait_timeout on Windows is 2147483Fotos Georgiadis2012-03-021-1/+1
| | | |
* | | | Whitespaces :scissors:Rafael Mendonça França2012-05-232-7/+7
| | | |
* | | | PGconn doesn't accepts :checkout_timeout option.Rafael Mendonça França2012-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This option was added on cb6f839359bd894feb0a1105b79af72b336aa41e renaming the :wait_timeout option. Fix build http://travis-ci.org/#!/rails/rails/jobs/1413405
* | | | ConnectionPool wait_timeout no longer used for different types of timeouts. ↵Jonathan Rochkind2012-05-231-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #6441 An AR ConnectionSpec `wait_timeout` is pre-patch used for three different things: * mysql2 uses it for MySQL's own wait_timeout (how long MySQL should allow an idle connection before closing it), and defaults to 2592000 seconds. * ConnectionPool uses it for "number of seconds to block and wait for a connection before giving up and raising a timeout error", default 5 seconds. * ConnectionPool uses it for the Reaper, for deciding if a 'dead' connection can be reaped. Default 5 seconds. Previously, if you want to change these from defaults, you need to change them all together. This is problematic _especially_ for the mysql2/ConnectionPool conflict, you will generally _not_ want them to be the same, as evidenced by their wildly different defaults. This has caused real problems for people #6441 #2894 But as long as we're changing this, forcing renaming the ConnectionPool key to be more specific, it made sense to seperate the two ConnectionPool uses too -- these two types of ConnectionPool timeouts ought to be able to be changed independently, you won't neccesarily want them to be the same, even though the defaults are (currently) the same.
* | | | Revert "Merge pull request #6416 from pmahoney/threadsafe-connection-pool"Rafael Mendonça França2012-05-221-86/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d2901f0fc4270a765717ad572d559dc49a56b3a8, reversing changes made to 525839fdd8cc34d6d524f204528d5b6f36fe410c. Conflicts: activerecord/test/cases/connection_pool_test.rb Reason: This change broke the build (http://travis-ci.org/#!/rails/rails/builds/1391490) and we don't have any solution until now. I asked the author to try to fix it and open a new pull request.
* | | | Make connection pool fair with respect to waiting threads.Patrick Mahoney2012-05-201-34/+86
| | | |
* | | | Merge pull request #6397 from kennyj/fix_translate_exceptionAaron Patterson2012-05-191-3/+7
|\ \ \ \ | | | | | | | | | | Fix a problem of translate_exception method in a Japanese (non English) environment.
| * | | | Fix a problem of translate_exception method in Japanese.kennyj2012-05-201-3/+7
| | |_|/ | |/| |
* / | | Synchronize read and modification of @reserved_connections hash to avoid ↵Patrick Mahoney2012-05-191-4/+8
|/ / / | | | | | | | | | concurrency error.
* | | Merge pull request #6238 from pwnall/pgsql_bytea_limitAaron Patterson2012-05-171-8/+19
|\ \ \ | | | | | | | | Postgresql doesn't accept limits on binary (bytea) columns.
| * | | Postgresql doesn't accept limits on binary (bytea) columns.Victor Costan2012-05-091-8/+19
| | | |
* | | | Merge pull request #6192 from ↵Aaron Patterson2012-05-163-7/+65
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | danmcclain/add_inet_and_cidr_types_to_postgresql_adapter Add support for macaddr, inet, and cidr types to PostgreSQL adapter
| * | | | Removes NetAddr dependencyDan McClain2012-05-081-6/+7
| | | | |
| * | | | Converts inet and cidr columns to NetAddr::CIDRDan Seaver2012-05-073-3/+41
| | | | |
| * | | | Adds migration and schema dump support for INET, CIDR, and MACADDRDan Seaver2012-05-051-4/+23
| | | | |
* | | | | Merge pull request #6349 from erichmenge/patch-raise-type-errorsAaron Patterson2012-05-161-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Integer limit out of range should be allowed to raise. Closes #6272
| * | | | | Integer limit out of range should be allowed to raise. Closes #6272Erich Menge2012-05-161-1/+1
| | | | | |
* | | | | | Merge pull request #6344 from erichmenge/patch_sqlite_time_typePiotr Sarnacki2012-05-151-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | SQLite3 doesn't actually support the 'time' type.
| * | | | | | SQLite3 doesn't actually support the 'time' type.Erich Menge2012-05-151-1/+1
| |/ / / / /
* / / / / / Remove useless check of adapterOscar Del Ben2012-05-151-4/+0
|/ / / / /
* | | | | Remove unnecessary calls to primary_key on sqlite3_adapterCarlos Galdino2012-05-151-1/+1
| | | | |
* | | | | Set the primary key during #copy_table if necessary. Fixes [#2312]Sean Scally2012-05-141-1/+5
| | | | |
* | | | | Merge pull request #6285 from ↵Vijay Dev2012-05-121-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | acapilleri/missplelling_error_in_abstract_mysql_adapter missplelling error in abstract_mysql_adapter
| * | | | missplelling error in abstract_mysql_adapterAngelo Capilleri2012-05-121-1/+1
| | | | |
* | | | | remove unnecessary 'examples' noise [ci skip]Vijay Dev2012-05-112-28/+18
| |_|/ / |/| | |
* | | | Merge pull request #5362 from zenprogrammer/quoting_bugAaron Patterson2012-05-091-0/+1
|\ \ \ \ | | | | | | | | | | Fixed bug in ActiveRecord that caused classes to be quoted incorrectly
| * | | | Fixed bug in Quoting that caused classes to be quoted incorrectlyRyan Oblak2012-03-091-0/+1
| | |_|/ | |/| |
* | | | Merge pull request #6069 from mipearson/use_strict_mode_in_mysqlJeremy Kemper2012-05-052-0/+16
|\ \ \ \ | | | | | | | | | | Use strict mode in mysql
| * | | | Add config option, rdoc, tests for mysql(2) STRICT_ALL_TABLES mode.Michael Pearson2012-05-052-4/+9
| | | | |
| * | | | Default to 'strict mode' in MySQLMichael Pearson2012-05-052-0/+11
| | |_|/ | |/| |
* / | | Prevent creating valid time-like objects from blank string from dbEgor Lynko2012-05-051-3/+3
|/ / / | | | | | | | | | Issue #6045
* | | Merge pull request #3713 from kf8a/masterAaron Patterson2012-05-041-2/+7
|\ \ \ | | | | | | | | postgresql adapter should quote not a number and infinity correctly for float columns
| * | | postgresql adapter handles quoting of not a number (NaN) and InfinitySven Bohm2011-11-211-2/+7
| | | |
* | | | Use arel nodes instead of raw sqlMarcelo Silveira2012-05-021-1/+4
| | | |
* | | | Refactored remove_columnEdgars Beigarts2012-05-023-4/+2
| | | |
* | | | Don't type cast values that don't respond to to_i to 1James Sanders & Jason Noble2012-04-301-1/+1
| | | |
* | | | Remove unused assignmentsMark Rushakoff2012-04-291-5/+3
| | | |
* | | | Merge pull request #5698 from dougcole/support_postgresql_partitioningAaron Patterson2012-04-273-9/+44
|\ \ \ \ | | | | | | | | | | Support postgresql partitioning by making INSERT RETURNING optional
| * | | | refactor configuration of insert_returningDoug Cole2012-04-071-14/+4
| | | | |
| * | | | pick better names and add a little documentationDoug Cole2012-04-011-8/+16
| | | | |
| * | | | refactorDoug Cole2012-03-311-13/+8
| | | | |
| * | | | update mysql for new exec_insert signatureDoug Cole2012-03-311-1/+1
| | | | |
| * | | | add use_returning as a postgresql connection configDoug Cole2012-03-312-6/+48
| | | | |