Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Fix type_to_sql with text and limit on mysql/mysql2. Fix GH #3931. | kennyj | 2012-02-26 | 1 | -9/+20 | |
| | | ||||||
* | | prepared statements can be disabled | Aaron Patterson | 2012-02-21 | 1 | -1/+11 | |
| | | ||||||
* | | more ruby 2.0 respond_to? changes | Aaron Patterson | 2012-02-21 | 1 | -1/+1 | |
| | | ||||||
* | | Remove useless argument in #columns. | Sebastian Martinez | 2012-02-02 | 1 | -1/+1 | |
|/ | ||||||
* | Fix GH #4754. Remove double-quote when using ANSI_QUOTES | kennyj | 2012-01-31 | 1 | -1/+1 | |
| | ||||||
* | Handle nil in add_index :length option in MySQL | Paul Sadauskas | 2012-01-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | Our schema.rb is being generated with an `add_index` line similar to this: add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil} This is the same as it was on Rails 3.1.3, however, now when that schema.rb is evaluated, its generating bad SQL in MySQL: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: CREATE UNIQUE INDEX `xxx` ON `foo` (`foo`(8), `bar`()) This commit adds a check for nil on the length attribute to prevent the empty parens from being output. | |||||
* | Revert naive O(1) table_exists? implementation. | Jon Leighton | 2011-12-13 | 1 | -5/+8 | |
| | | | | | | | | | | 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. | |||||
* | Use show create table. | kennyj | 2011-12-03 | 1 | -3/+8 | |
| | ||||||
* | implements automatic EXPLAIN logging for slow queries | Xavier Noria | 2011-12-02 | 1 | -74/+0 | |
| | ||||||
* | removing deprecated methods | Aaron Patterson | 2011-11-19 | 1 | -4/+0 | |
| | ||||||
* | adding visitors to the respective adapters | Aaron Patterson | 2011-11-19 | 1 | -0/+1 | |
| | ||||||
* | Use `show index from`. We could fix `pk_and_sequence_for` method's ↵ | kennyj | 2011-11-19 | 1 | -18/+2 | |
| | | | | performance problem (GH #3678) | |||||
* | Only used detailed schema introspection when doing a schema dump. | Christos Zisopoulos | 2011-11-18 | 1 | -0/+7 | |
| | | | Fixes #3678 | |||||
* | Join method uses empty string by default, so remove it | Aaron Patterson | 2011-11-16 | 1 | -2/+2 | |
| | ||||||
* | adds trailing +s to the output of EXPLAIN for MySQL | Xavier Noria | 2011-11-07 | 1 | -3/+2 | |
| | ||||||
* | implements AR::Relation#explain | Xavier Noria | 2011-11-05 | 1 | -0/+75 | |
| | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Merge pull request #3525 from kennyj/fix_3440-1 | Jon Leighton | 2011-11-05 | 1 | -2/+11 | |
|\ | | | | | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440) | |||||
| * | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440) | kennyj | 2011-11-06 | 1 | -2/+11 | |
| | | ||||||
* | | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -9/+27 | |
|/ | ||||||
* | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 1 | -4/+23 | |
| | | | | case sensitive collation. | |||||
* | Move the bulk alter table code into the abstract mysql adapter, hence it is ↵ | Jon Leighton | 2011-08-29 | 1 | -0/+42 | |
| | | | | supported for mysql2 as well now. | |||||
* | Extract simplified_type into the abstract class | Jon Leighton | 2011-08-29 | 1 | -1/+18 | |
| | ||||||
* | Create an AbstractMysqlAdapter to abstract the common code between ↵ | Jon Leighton | 2011-08-29 | 1 | -0/+552 | |
MysqlAdapter and Mysql2Adapter. |