Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify the regex for `unsigned?` method | Ryuta Kamizono | 2016-12-11 | 1 | -2/+1 |
| | | | | | It is enough to distinguish only the trailing `unsigned` and `unsigned zerofill`. | ||||
* | [ci skip] Document regex change | Alex Kitchens | 2016-12-06 | 1 | -0/+1 |
| | |||||
* | Fix that unsigned with zerofill is treated as signed | Ryuta Kamizono | 2016-11-27 | 1 | -1/+1 |
| | | | | Fixes #27125. | ||||
* | Use Regexp#match? rather than Regexp#=== | Ryuta Kamizono | 2016-10-26 | 1 | -2/+2 |
| | | | | Follow up to 99cf7558000090668b137085bfe6bcc06c4571dc. | ||||
* | Remove unused `blob_or_text_column?` method | Ryuta Kamizono | 2016-08-19 | 1 | -4/+0 |
| | |||||
* | Remove text default treated as an empty string in non-strict mode | Ryuta Kamizono | 2016-08-19 | 1 | -19/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. If strict mode is not in effect, MySQL inserts adjusted values for invalid or missing values and produces warnings. ```ruby def test_mysql_not_null_defaults_non_strict using_strict(false) do with_mysql_not_null_table do |klass| record = klass.new assert_nil record.non_null_integer assert_nil record.non_null_string assert_nil record.non_null_text assert_nil record.non_null_blob record.save! record.reload assert_equal 0, record.non_null_integer assert_equal "", record.non_null_string assert_equal "", record.non_null_text assert_equal "", record.non_null_blob end end end ``` It is inconsistent with other types that only text/blob defaults treated as an empty string. This commit fixes the inconsistency. | ||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -4/+4 |
| | |||||
* | applies new string literal convention in activerecord/lib | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Remove unnecessary `assert_valid_default` | Ryuta Kamizono | 2016-06-25 | 1 | -7/+0 |
| | | | | | This was added at c7c3f73 but it never raised because MySQL cannot create text/blob columns with a default value. | ||||
* | Extract `MySQL::Column` class to `connection_adapters/mysql/column.rb` | Ryuta Kamizono | 2016-01-11 | 1 | -0/+50 |