Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Backport #8522, Keep index names when using with sqlite3 | Yves Senn | 2012-12-19 | 1 | -1/+1 |
| | | | | | | | | Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb activerecord/test/cases/migration/rename_column_test.rb | ||||
* | Merge pull request #8057 from frodsan/fix_sqlite_mutate_arg | Rafael Mendonça França | 2012-10-29 | 1 | -1/+1 |
| | | | | | | SQLite3Adapter#type_cast should not mutate arguments Conflicts: activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | ||||
* | Backport explain fixes. | Rafael Mendonça França | 2012-09-16 | 1 | -2/+2 |
| | | | | | | | | * Mark as SCHEMA some schema database queries. #7648 * Don't explain queries except normal CRUD sql. #7657 Closes #6458 Closes #7544 | ||||
* | Stop showing deprecations for Ruby 1.8.7 with remove_column | Carlos Antonio da Silva | 2012-05-09 | 1 | -2/+2 |
| | | | | | String is Enumerable in 1.8.7, which means that passing a String to remove_column was generating deprecation warnings during tests. | ||||
* | Deprecate remove_column with array as an argument | Piotr Sarnacki | 2012-05-02 | 1 | -0/+7 |
| | |||||
* | only log an error if there is a logger. fixes #5226 | Aaron Patterson | 2012-03-02 | 1 | -1/+1 |
| | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | ||||
* | prepared statements can be disabled | Aaron Patterson | 2012-02-21 | 1 | -2/+12 |
| | |||||
* | Merge pull request #4809 from cfeist/feist-sqlite-binary-corruption | Aaron Patterson | 2012-02-02 | 1 | -16/+1 |
| | | | | Fix for SQLite binary data corrupter (to master branch) | ||||
* | Revert naive O(1) table_exists? implementation. | Jon Leighton | 2011-12-13 | 1 | -1/+6 |
| | | | | | | | | | | It was a bad idea to rescue exceptions here. This can interfere with transaction rollbacks which seems to be the cause of current CI failure. Instead, each adapter should implement its own DB-specific O(1) implementation, and we fall back on the generic, slower, implementation otherwise. | ||||
* | implements automatic EXPLAIN logging for slow queries | Xavier Noria | 2011-12-02 | 1 | -2/+7 |
| | |||||
* | pushing caching and visitors down to the connection | Aaron Patterson | 2011-11-19 | 1 | -4/+1 |
| | |||||
* | Revert "Merge pull request #1163 from amatsuda/sexier_migration_31" | Aaron Patterson | 2011-11-17 | 1 | -10/+8 |
| | | | | | | | | | | This reverts commit 0e407a90413d8a19002b85508d811ccdf2190783, reversing changes made to 533a9f84b035756eedf9fdccf0c494dc9701ba72. Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/migration_test.rb | ||||
* | implements AR::Relation#explain | Xavier Noria | 2011-11-05 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it. | ||||
* | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -0/+4 |
| | |||||
* | Merge pull request #1163 from amatsuda/sexier_migration_31 | Aaron Patterson | 2011-11-04 | 1 | -8/+10 |
|\ | | | | | Sexier migrations | ||||
| * | No "t." for the migration DSL! | Akira Matsuda | 2011-05-20 | 1 | -8/+10 |
| | | | | | | | | | | Now you can omit |t| block parameter and all the t. from your migration code, that means, the syntax looks more Rails-3-ish, like the routes DSL and ActionMailer DSL. Also, this change won't break any of your existing migration files, since the traditional syntax is still available. | ||||
* | | preserve decimal column attributes after migration | Greg Reinacker | 2011-10-21 | 1 | -0/+3 |
| | | |||||
* | | LRU cache in mysql and sqlite are now per-process caches. | Aaron Patterson | 2011-09-07 | 1 | -10/+14 |
| | | |||||
* | | Database adapters use a statement pool. | Aaron Patterson | 2011-09-06 | 1 | -2/+3 |
| | | | | | | | | | | | | 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 | 1 | -5/+33 |
| | | |||||
* | | * 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 |
| | | |||||
* | | 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. | ||||
* | | prevent sql injection attacks by escaping quotes in column names | Aaron Patterson | 2011-08-16 | 1 | -1/+1 |
| | | |||||
* | | Make it the responsibility of the connection to hold onto an ARel visitor ↵ | Jon Leighton | 2011-08-08 | 1 | -0/+4 |
| | | | | | | | | 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 | ||||
* | | bigdecimal should be typecast to a float on sqlite3. fixes #2162 | Aaron Patterson | 2011-07-20 | 1 | -0/+5 |
| | | |||||
* | | stop using boolean expressions because of the side effects | Aaron Patterson | 2011-05-27 | 1 | -1/+4 |
| | | |||||
* | | close statment only if its not closed | Hemant Kumar | 2011-05-28 | 1 | -1/+1 |
| | | |||||
* | | work around bug in the sqlite3 bindings. fixes #1289 | Aaron Patterson | 2011-05-27 | 1 | -0/+1 |
| | | |||||
* | | Remove extra white-space on some exception messages. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | | |||||
* | | Removed AS core_ext/kernel/requires as it's not used and is bad practice. | Josh Kalderimis | 2011-05-23 | 1 | -1/+0 |
|/ | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-01 | 1 | -1/+12 |
|\ | | | | | | | | | Conflicts: railties/guides/source/contributing_to_ruby_on_rails.textile | ||||
| * | Merge branch 'master' of github.com:lifo/docrails | Dan Pickett | 2011-04-29 | 1 | -1/+12 |
| |\ | |||||
| | * | Added some docs on SQLite adapter | Sebastian Martinez | 2011-04-22 | 1 | -0/+5 |
| | | | |||||
| | * | Make this docs more consistent with the rest of the docs present | Sebastian Martinez | 2011-04-22 | 1 | -1/+1 |
| | | | |||||
| | * | Added docs for #rename_table on some adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+4 |
| | | | |||||
| | * | Added docs for #columns on some adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+1 |
| | | | |||||
| | * | Merge branch 'master' of git://github.com/rails/rails | Xavier Noria | 2011-04-23 | 1 | -4/+0 |
| | |\ | |||||
| | * | | Added docs for #indexes on adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+1 |
| | | | | |||||
* | | | | using bind parameters for updates | Aaron Patterson | 2011-04-30 | 1 | -0/+1 |
|/ / / | |||||
* | | | sqlite3 supports prepared statement deletes | Aaron Patterson | 2011-04-29 | 1 | -0/+5 |
| | | | |||||
* | | | Use existing #empty_insert_statement_value for an insert with no columns. | Ken Collins | 2011-04-24 | 1 | -4/+0 |
| |/ |/| | |||||
* | | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-23 | 1 | -2/+7 |
|\| | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | ||||
| * | copy-edits 0e2644c | Xavier Noria | 2011-04-23 | 1 | -1/+1 |
| | | |||||
| * | copy-edits e2656e0 | Xavier Noria | 2011-04-23 | 1 | -2/+2 |
| | | |||||
| * | copy-edits 3d45964 | Xavier Noria | 2011-04-23 | 1 | -1/+1 |
| | | |||||
| * | Added docs for #disconnect! on adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+2 |
| | | |||||
| * | Added missing docs for clear_cache! on adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+1 |
| | | |||||
| * | Added missing docs for +supports_primary_key?+ on some adapters | Sebastian Martinez | 2011-04-22 | 1 | -0/+1 |
| | |