aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the way default DATABASE_URL works.Glenn Gillen2011-07-251-1/+1
|
* Fixes typoVijay Dev2011-07-221-1/+1
|
* adding more tests around database uri parsingAaron Patterson2011-07-211-5/+3
|
* Add documentation for URL connection strings.Glenn Gillen2011-07-201-0/+6
|
* Added test for postgres connections as URL. Fixed query param parsing.Glenn Gillen2011-07-201-1/+1
|
* Provide database connection settings as a URL.Glenn Gillen2011-07-201-0/+22
|
* bigdecimal should be typecast to a float on sqlite3. fixes #2162Aaron Patterson2011-07-201-0/+5
|
* Refactor PostgreSQLAdapter a bitDaniel Schierbeck2011-07-081-16/+18
| | | | | Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send.
* cache column defaults for AR object instantiationAaron Patterson2011-06-271-0/+9
|
* Improve ordering of multiple columns on postgresqlLucia Escanellas2011-06-241-1/+1
| | | | | * Only on postgresql, order("first asc, second asc") was invalid * Closes #1720
* Merge pull request #1632 from tardate/pg_schema_fuAaron Patterson2011-06-211-47/+72
|\ | | | | Improving PostgreSQL adapter schema-awareness
| * Merge remote branch 'rails/master' into pg_schema_fuPaul Gallagher2011-06-195-12/+13
| |\
| * | Make PostgreSQL adapter view-compatiblePaul Gallagher2011-06-191-3/+5
| | | | | | | | | * amongst other things, allows meta_search to run against view-backed models
| * | make extract_schema_and_table a private methodPaul Gallagher2011-06-111-20/+17
| | |
| * | remove table quoting in primary_key methodPaul Gallagher2011-06-111-1/+1
| | | | | | | | | * add/cleanup tests
| * | apply private method indentation conventionPaul Gallagher2011-06-101-22/+22
| | | | | | | | | * tidy test code and fix my typo
| * | Improve PostgreSQL adapter schema-awarenessPaul Gallagher2011-06-101-25/+51
| | | | | | | | | | | | | | | | | | | | | * table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour * extract_schema_and_table tests and implementation extended to cover all cases * primary_key does not ignore schema information * add current_schema and schema_exists? methods * more robust table referencing in insert_sql and sql_for_insert methods
* | | Add missing require 'set'Daniel Azuma2011-06-201-0/+2
| | |
* | | Merge pull request #1763 from grantneufeld/schema_column_exists_options_hashJosé Valim2011-06-181-1/+1
|\ \ \ | | | | | | | | Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
| * | | Changed the default value for the options argument on ↵Grant Neufeld2011-06-181-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
* / | Fix inconsistencies by being polite to the wrapped body. Needed for ↵Steve Hodgkiss2011-06-181-0/+8
|/ / | | | | | | Rack::Sendfile to function properly. See issue #1761.
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-183-11/+11
|\ \
| * | Update remove_index documentationLucia Escanellas2011-06-172-9/+9
| | | | | | | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624
| * | Remove trailing whitespacesGuillermo Iguaran2011-06-121-2/+2
| |/
* | Bump to mysql2 0.3.6Guillermo Iguaran2011-06-171-1/+1
| |
* | Merge pull request #1636 from metaskills/upstream/3-1-stableAaron Patterson2011-06-171-0/+1
|\ \ | | | | | | Allow the connection pool's #table_exists? method to give the connections
| * | Allow the connection pool's #table_exists? method to give the connections ↵Ken Collins2011-06-101-0/+1
| |/ | | | | | | #table_exists? method a chance.
* | Bump mysql2 to 0.3.5Arun Agrawal2011-06-161-1/+1
| |
* | Bump mysql2 upSantiago Pastorino and José Ignacio Costa2011-06-161-1/+1
|/
* Remove unused 'quoted_column_names' variable.Sebastian Martinez2011-06-081-1/+1
|
* Revert "[activerecord][postgresql] verify if table has a schema(not ↵Jon Leighton2011-05-311-5/+6
| | | | | | public)". This caused a test breakage. See #1410 for details. This reverts commit c44418ea4e09cc81da47edbc9ac5f31c7e32c1b4.
* Merge pull request #1410 from lucasts/pg_schemaAaron Patterson2011-05-301-5/+11
|\ | | | | a little step to better postgresql schema support in rails
| * [activerecord][postgresql] verify if table has a schema(not public)Lucas Stephanou2011-05-271-6/+5
| |
| * find sequences with pg schemas properlyLucas Stephanou2011-05-271-4/+11
| |
* | No need to pass options which is never usedAkira Matsuda2011-05-291-2/+2
| |
* | No need to override for just calling superAkira Matsuda2011-05-292-8/+0
| |
* | stop using boolean expressions because of the side effectsAaron Patterson2011-05-271-1/+4
| |
* | close statment only if its not closedHemant Kumar2011-05-281-1/+1
| |
* | work around bug in the sqlite3 bindings. fixes #1289Aaron Patterson2011-05-271-0/+1
|/
* Merge branch 'master' of github.com:rails/railsXavier Noria2011-05-253-65/+2
|\
| * removed deprecated methods, and related tests, from ActiveRecordJosh Kalderimis2011-05-253-65/+2
| |
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-255-10/+10
|\ \ | |/ |/| | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-235-10/+10
| |
* | Remove extra white-space on some exception messages.Sebastian Martinez2011-05-235-6/+6
| |
* | Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-233-3/+0
| |
* | Merge pull request #1097 from kirillrdy/masterMichael Koziarski2011-05-191-1/+1
|\ \ | |/ |/| Improved "treat 0000-00-00 00:00:00 as nil Date"
| * Year 0 should fall to nil only if month and day are also 0Kirill Radzikhovskyy2011-05-171-1/+1
| |
* | on.upcase!Akira Matsuda2011-05-191-1/+1
| |
* | why not use JOIN statement for joining tables? (vol. 2)Akira Matsuda2011-05-181-21/+12
| |
* | remove unused table from FROM clauseAkira Matsuda2011-05-181-2/+0
| | | | | | | | pg_namespace has not been used since this commit 29b0707f07f148d98515125dab44b73cfdc0a3d4