- 27 5月, 2014 2 次提交
-
-
由 Sean Griffin 提交于
This is already the behavior for `BigDecimal` in the abstract adapter.
-
由 Sean Griffin 提交于
-
- 23 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
Columns and injected types no longer have any conditionals based on the format of SQL type strings! Hooray!
-
- 21 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
All subclasses of column were now delegating `type_cast` to their injected type object. We can remove the overriding methods, and generalize it on the `Column` class itself. This also enabled us to remove several column classes completely, as they no longer had any meaningful behavior of their own.
-
- 20 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
The `:timestamp` type for columns is unused. All database adapters treat them as the same database type. All code in `ActiveRecord` which changes its behavior based on the column's type acts the same in both cases. However, when the type is passed to code that checks for the `:datetime` type, but not `:timestamp` (such as XML serialization), the result is unexpected behavior. Existing schema definitions will continue to work, and the `timestamp` type is transparently aliased to `datetime`.
-
- 19 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
The decision to wrap type registrations in a proc was made for two reasons. 1. Some cases need to make an additional decision based on the type (e.g. a `Decimal` with a 0 scale) 2. Aliased types are automatically updated if they type they point to is updated later. If a user or another adapter decides to change the object used for `decimal` columns, `numeric`, and `number` will automatically point to the new type, without having to track what types are aliased explicitly. Everything else here should be pretty straightforward. PostgreSQL ranges had to change slightly, since the `simplified_type` method is gone.
-
- 18 5月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
Part of #15134. In order to perform typecasting polymorphically, we need to add another argument to the constructor. The order was chosen to match the `oid_type` on `PostgreSQLColumn`.
-
- 16 5月, 2014 1 次提交
-
-
由 Aaron Nelson 提交于
-
- 04 5月, 2014 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
column_for will raise in case column is not found for the given table, so there is no need to handle that here.
-
由 Yves Senn 提交于
-
- 01 5月, 2014 1 次提交
-
-
由 Paul Nikitochkin 提交于
For mysql2/mysql adapters, `sql_mode` variable name set in `database.yml` as string, was ignored and `sql_mode` was set to use strict mode. Fixes #14895
-
- 18 4月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
-
- 10 4月, 2014 5 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 08 4月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
this lets arel know how to correctly quote the value
-
- 31 3月, 2014 1 次提交
-
-
由 Luke Steensen 提交于
-
- 27 3月, 2014 4 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
* cache `o.name` value * Avoid extra `concat` call * Avoid extra `<<` call
-
- 26 3月, 2014 2 次提交
-
-
由 Steve Rice 提交于
Also: - updates tests by stubbing table_exists? method - adds entry for creating indexes in CREATE TABLE to changelog
-
由 Cody Cutrer 提交于
This is important, because adding an index on a temporary table after it has been created would commit the transaction Conflicts: activerecord/CHANGELOG.md
-
- 04 3月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
-
- 13 2月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 17 12月, 2013 1 次提交
-
-
由 Jeremy Kemper 提交于
Blast from the past, MySQL 4 era, when the password hashing style changed.
-
- 14 12月, 2013 1 次提交
-
-
由 Cody Cutrer 提交于
also override drop_table in AbstractMySQLAdapter to properly drop temporary tables without committing the transaction
-
- 10 12月, 2013 1 次提交
-
-
由 Yasuo Honda 提交于
Since MySQL 5.7.3 m13 does now allow primary key column is null.
-
- 29 11月, 2013 4 次提交
-
-
由 Rafael Mendonça França 提交于
This method is not using the block variable directly since it is calling yield
-
由 Akshay Vishnoi 提交于
-
由 Cody Cutrer 提交于
also clarify native rename_index support is >= 5.7, not > 5.7
-
由 Cody Cutrer 提交于
-
- 26 11月, 2013 1 次提交
-
-
由 Ryuta Kamizono 提交于
Only use BINARY for mysql case sensitive uniqueness check when column has a case insensitive collation.
-
- 11 11月, 2013 1 次提交
-
-
由 Yves Senn 提交于
-
- 06 11月, 2013 1 次提交
-
-
由 Doug Barth 提交于
The MySQL connection adapater swallows all StandardError exceptions, which includes Mysql::Error and Mysql2::Error. The comment in the exception clause claims errors thrown here indicate that transactions aren't supported by the server but that isn't necessarily true. It's possible the MySQL server has gone away and swallowing a failed commit may let the application return a successful response when the data has not been saved. Also, replication libraries like Galera require that the application handle exceptions thrown at BEGIN/COMMIT. I'm unable to determine what version of MySQL threw an exception for transactional statements. I tried as far back as 3.23.49 with InnoDB disabled but BEGIN & COMMIT statements do not throw an error. If there's a real case for this logic to continue, we could instead push this behavior into a configuration setting. The exception swallowing has been there since the beginning: db045dbb
-
- 30 9月, 2013 2 次提交