aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8057 from frodsan/fix_sqlite_mutate_argRafael Mendonça França2012-10-291-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ça2012-09-161-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_columnCarlos Antonio da Silva2012-05-091-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 argumentPiotr Sarnacki2012-05-021-0/+7
|
* only log an error if there is a logger. fixes #5226Aaron Patterson2012-03-021-1/+1
| | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
* prepared statements can be disabledAaron Patterson2012-02-211-2/+12
|
* Merge pull request #4809 from cfeist/feist-sqlite-binary-corruptionAaron Patterson2012-02-021-16/+1
| | | | Fix for SQLite binary data corrupter (to master branch)
* Revert naive O(1) table_exists? implementation.Jon Leighton2011-12-131-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 queriesXavier Noria2011-12-021-2/+7
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-4/+1
|
* Revert "Merge pull request #1163 from amatsuda/sexier_migration_31"Aaron Patterson2011-11-171-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#explainXavier Noria2011-11-051-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) indexesVlad Jebelev2011-11-041-0/+4
|
* Merge pull request #1163 from amatsuda/sexier_migration_31Aaron Patterson2011-11-041-8/+10
|\ | | | | Sexier migrations
| * No "t." for the migration DSL!Akira Matsuda2011-05-201-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 migrationGreg Reinacker2011-10-211-0/+3
| |
* | LRU cache in mysql and sqlite are now per-process caches.Aaron Patterson2011-09-071-10/+14
| |
* | Database adapters use a statement pool.Aaron Patterson2011-09-061-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 sqlite3Aaron Patterson2011-09-061-5/+33
| |
* | * 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
| |
* | 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.
* | prevent sql injection attacks by escaping quotes in column namesAaron Patterson2011-08-161-1/+1
| |
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-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 loggedGustavo Delfino2011-08-061-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 #2162Aaron Patterson2011-07-201-0/+5
| |
* | 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
| |
* | Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-1/+1
| |
* | Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-231-1/+0
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-011-1/+12
|\ | | | | | | | | Conflicts: railties/guides/source/contributing_to_ruby_on_rails.textile
| * Merge branch 'master' of github.com:lifo/docrailsDan Pickett2011-04-291-1/+12
| |\
| | * Added some docs on SQLite adapterSebastian Martinez2011-04-221-0/+5
| | |
| | * Make this docs more consistent with the rest of the docs presentSebastian Martinez2011-04-221-1/+1
| | |
| | * Added docs for #rename_table on some adaptersSebastian Martinez2011-04-221-0/+4
| | |
| | * Added docs for #columns on some adaptersSebastian Martinez2011-04-221-0/+1
| | |
| | * Merge branch 'master' of git://github.com/rails/railsXavier Noria2011-04-231-4/+0
| | |\
| | * | Added docs for #indexes on adaptersSebastian Martinez2011-04-221-0/+1
| | | |
* | | | using bind parameters for updatesAaron Patterson2011-04-301-0/+1
|/ / /
* | | sqlite3 supports prepared statement deletesAaron Patterson2011-04-291-0/+5
| | |
* | | Use existing #empty_insert_statement_value for an insert with no columns.Ken Collins2011-04-241-4/+0
| |/ |/|
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-231-2/+7
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * copy-edits 0e2644cXavier Noria2011-04-231-1/+1
| |
| * copy-edits e2656e0Xavier Noria2011-04-231-2/+2
| |
| * copy-edits 3d45964Xavier Noria2011-04-231-1/+1
| |
| * Added docs for #disconnect! on adaptersSebastian Martinez2011-04-221-0/+2
| |
| * Added missing docs for clear_cache! on adaptersSebastian Martinez2011-04-221-0/+1
| |
| * Added missing docs for +supports_primary_key?+ on some adaptersSebastian Martinez2011-04-221-0/+1
| |
| * Added missing docs for +support_migrations?+ on some adaptersSebastian Martinez2011-04-221-0/+1
| |