Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | LRU cache in mysql and sqlite are now per-process caches. | Aaron Patterson | 2011-09-07 | 2 | -21/+30 |
| | |||||
* | LRU should cache per process in postgresql. fixes #1339 | Aaron Patterson | 2011-09-07 | 1 | -10/+14 |
| | |||||
* | fixing view queries | Aaron Patterson | 2011-09-07 | 1 | -3/+5 |
| | |||||
* | use the supplied bind values | Aaron Patterson | 2011-09-07 | 1 | -1/+1 |
| | |||||
* | Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawr | Aaron Patterson | 2011-09-07 | 1 | -6/+4 |
| | | | | | | * https://github.com/rails/rails: Postgresql adapter: added current_schema check for table_exists? Postgresql adapter: added current_schema check for table_exists? | ||||
* | Merge pull request #2897 from rsutphin/ar31-remove_connection | Aaron Patterson | 2011-09-06 | 2 | -2/+2 |
| | | | | Patch for issue #2820 | ||||
* | Database adapters use a statement pool. | Aaron Patterson | 2011-09-06 | 3 | -8/+46 |
| | | | | | | Database adapters use a statement pool for limiting the number of open prepared statments on the database. The limit defaults to 1000, but can be adjusted in your database config by changing 'statement_limit'. | ||||
* | adding a statement pool for mysql and sqlite3 | Aaron Patterson | 2011-09-06 | 3 | -9/+102 |
| | |||||
* | Make the logic easier to read | Jon Leighton | 2011-09-06 | 1 | -4/+7 |
| | |||||
* | * Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731 | Aaron Patterson | 2011-09-01 | 1 | -1/+0 |
| | |||||
* | make sure encoding_aware? is available | Aaron Patterson | 2011-09-01 | 1 | -0/+2 |
| | |||||
* | Merge pull request #2021 from dasch/more_postgres_utils | Aaron Patterson | 2011-08-29 | 1 | -1/+3 |
|\ | | | | | Make #extract_schema_and_table an instance method in Utils | ||||
| * | Make #extract_schema_and_table an instance method in Utils | Daniel Schierbeck | 2011-07-09 | 1 | -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 Leighton | 2011-08-29 | 2 | -47/+42 |
| | | | | | | | | supported for mysql2 as well now. | ||||
* | | Extract simplified_type into the abstract class | Jon Leighton | 2011-08-29 | 3 | -23/+24 |
| | | |||||
* | | Create an AbstractMysqlAdapter to abstract the common code between ↵ | Jon Leighton | 2011-08-29 | 3 | -1097/+706 |
| | | | | | | | | MysqlAdapter and Mysql2Adapter. | ||||
* | | Force binary data inserted for a string data type to utf-8 and log an | Aaron Patterson | 2011-08-25 | 1 | -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 autoload | Claudio Poli | 2011-08-24 | 1 | -0/+1 |
| | | |||||
* | | prevent sql injection attacks by escaping quotes in column names | Aaron Patterson | 2011-08-16 | 3 | -3/+3 |
| | | |||||
* | | In 1efd88283ef68d912df215125951a87526768a51, ConnectionAdapters was put ↵ | Jon Leighton | 2011-08-16 | 1 | -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 method | Jon Leighton | 2011-08-15 | 2 | -2/+2 |
| | | |||||
* | | Use new SelectManager#projections= method | Jon Leighton | 2011-08-15 | 3 | -4/+4 |
| | | |||||
* | | use update.key instead of update.ast.key. make better use of select manager. | Jon Leighton | 2011-08-15 | 3 | -26/+18 |
| | | |||||
* | | Use a SelectCore rather than a full SelectManager | Jon Leighton | 2011-08-15 | 2 | -4/+6 |
| | | |||||
* | | Refactor building the update manager | Jon Leighton | 2011-08-15 | 3 | -11/+7 |
| | | |||||
* | | Support for multi-table updates with limits, offsets and orders | Jon Leighton | 2011-08-15 | 3 | -2/+47 |
| | | |||||
* | | Support updates with joins. Fixes #522. | Jon Leighton | 2011-08-15 | 3 | -0/+17 |
| | | |||||
* | | add the gem requirement for sqlite3 | Aaron Patterson | 2011-08-10 | 1 | -0/+2 |
| | | |||||
* | | Remove TODO comment I didn't mean to commit | Jon Leighton | 2011-08-09 | 1 | -2/+0 |
| | | |||||
* | | Make it the responsibility of the connection to hold onto an ARel visitor ↵ | Jon Leighton | 2011-08-08 | 8 | -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 logged | Gustavo Delfino | 2011-08-06 | 1 | -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) | artemk | 2011-08-04 | 1 | -2/+4 |
| | | |||||
* | | initializing @open_transactions in the initialize method | Aaron Patterson | 2011-08-03 | 1 | -4/+2 |
| | | |||||
* | | remove deprication warning for ruby 1.9.3-head for unused variables | Vishnu Atrai | 2011-07-26 | 1 | -1/+1 |
| | | |||||
* | | Simplify the way default DATABASE_URL works. | Glenn Gillen | 2011-07-25 | 1 | -1/+1 |
| | | |||||
* | | Fixes typo | Vijay Dev | 2011-07-22 | 1 | -1/+1 |
| | | |||||
* | | adding more tests around database uri parsing | Aaron Patterson | 2011-07-21 | 1 | -5/+3 |
| | | |||||
* | | Add documentation for URL connection strings. | Glenn Gillen | 2011-07-20 | 1 | -0/+6 |
| | | |||||
* | | Added test for postgres connections as URL. Fixed query param parsing. | Glenn Gillen | 2011-07-20 | 1 | -1/+1 |
| | | |||||
* | | Provide database connection settings as a URL. | Glenn Gillen | 2011-07-20 | 1 | -0/+22 |
| | | |||||
* | | bigdecimal should be typecast to a float on sqlite3. fixes #2162 | Aaron Patterson | 2011-07-20 | 1 | -0/+5 |
|/ | |||||
* | Refactor PostgreSQLAdapter a bit | Daniel Schierbeck | 2011-07-08 | 1 | -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 instantiation | Aaron Patterson | 2011-06-27 | 1 | -0/+9 |
| | |||||
* | Improve ordering of multiple columns on postgresql | Lucia Escanellas | 2011-06-24 | 1 | -1/+1 |
| | | | | | * Only on postgresql, order("first asc, second asc") was invalid * Closes #1720 | ||||
* | Merge pull request #1632 from tardate/pg_schema_fu | Aaron Patterson | 2011-06-21 | 1 | -47/+72 |
|\ | | | | | Improving PostgreSQL adapter schema-awareness | ||||
| * | Merge remote branch 'rails/master' into pg_schema_fu | Paul Gallagher | 2011-06-19 | 5 | -12/+13 |
| |\ | |||||
| * | | Make PostgreSQL adapter view-compatible | Paul Gallagher | 2011-06-19 | 1 | -3/+5 |
| | | | | | | | | | * amongst other things, allows meta_search to run against view-backed models | ||||
| * | | make extract_schema_and_table a private method | Paul Gallagher | 2011-06-11 | 1 | -20/+17 |
| | | | |||||
| * | | remove table quoting in primary_key method | Paul Gallagher | 2011-06-11 | 1 | -1/+1 |
| | | | | | | | | | * add/cleanup tests | ||||
| * | | apply private method indentation convention | Paul Gallagher | 2011-06-10 | 1 | -22/+22 |
| | | | | | | | | | * tidy test code and fix my typo |