aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* adding a statement pool for mysql and sqlite3Aaron Patterson2011-09-063-9/+102
|
* Make the logic easier to readJon Leighton2011-09-061-4/+7
|
* * Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731Aaron Patterson2011-09-011-1/+0
|
* make sure encoding_aware? is availableAaron Patterson2011-09-011-0/+2
|
* Merge pull request #2021 from dasch/more_postgres_utilsAaron Patterson2011-08-291-1/+3
|\ | | | | Make #extract_schema_and_table an instance method in Utils
| * Make #extract_schema_and_table an instance method in UtilsDaniel Schierbeck2011-07-091-1/+3
| | | | | | | | Also, move the utils test into its own test case.
* | Move the bulk alter table code into the abstract mysql adapter, hence it is ↵Jon Leighton2011-08-292-47/+42
| | | | | | | | supported for mysql2 as well now.
* | Extract simplified_type into the abstract classJon Leighton2011-08-293-23/+24
| |
* | Create an AbstractMysqlAdapter to abstract the common code between ↵Jon Leighton2011-08-293-1097/+706
| | | | | | | | MysqlAdapter and Mysql2Adapter.
* | Force binary data inserted for a string data type to utf-8 and log anAaron Patterson2011-08-251-3/+18
| | | | | | | | | | | | | | | | error. Strings tagged as binary will be stored in sqlite3 as blobs. It is an error to insert binary data to a string column, so an error is emitted in the log file. People are highly encouraged to track down the source of the binary strings and make sure that the encoding is set correctly before inserting to the database.
* | Adding missing autoloadClaudio Poli2011-08-241-0/+1
| |
* | prevent sql injection attacks by escaping quotes in column namesAaron Patterson2011-08-163-3/+3
| |
* | In 1efd88283ef68d912df215125951a87526768a51, ConnectionAdapters was put ↵Jon Leighton2011-08-161-12/+22
| | | | | | | | under eager_autoload. Due to the requires in that file, this caused ConnectionSpecification to be loaded, which references ActiveRecord::Base, which means the database connection is established. We do not want to connect to the database when Active Record is loaded, only when ActiveRecord::Base is first referenced by the user.
* | Use new SelectManager#source methodJon Leighton2011-08-152-2/+2
| |
* | Use new SelectManager#projections= methodJon Leighton2011-08-153-4/+4
| |
* | use update.key instead of update.ast.key. make better use of select manager.Jon Leighton2011-08-153-26/+18
| |
* | Use a SelectCore rather than a full SelectManagerJon Leighton2011-08-152-4/+6
| |
* | Refactor building the update managerJon Leighton2011-08-153-11/+7
| |
* | Support for multi-table updates with limits, offsets and ordersJon Leighton2011-08-153-2/+47
| |
* | Support updates with joins. Fixes #522.Jon Leighton2011-08-153-0/+17
| |
* | add the gem requirement for sqlite3Aaron Patterson2011-08-101-0/+2
| |
* | Remove TODO comment I didn't mean to commitJon Leighton2011-08-091-2/+0
| |
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-088-20/+81
| | | | | | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* | sqlite transactions now loggedGustavo Delfino2011-08-061-3/+3
| | | | | | motivation: http://stackoverflow.com/questions/6892630/sqlite-transactions-not-showing-in-test-log
* | accept option for recreate db for postgres (same as mysql now)artemk2011-08-041-2/+4
| |
* | initializing @open_transactions in the initialize methodAaron Patterson2011-08-031-4/+2
| |
* | remove deprication warning for ruby 1.9.3-head for unused variablesVishnu Atrai2011-07-261-1/+1
| |
* | 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