1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Ryuta Kamizono 0e2cd3d749
Add new error class QueryCanceled which will be raised when canceling statement due to user request (#31235)
This changes `StatementTimeout` to `QueryCanceled` for PostgreSQL.

In MySQL, errno 1317 (`ER_QUERY_INTERRUPTED`) is only used when the
query is manually cancelled.

But in PostgreSQL, `QUERY_CANCELED` error code (57014) which is used
`StatementTimeout` is also used when the both case. And, we can not tell
which reason happened.

So I decided to introduce new error class `QueryCanceled` closer to the
error code name.
2017-11-27 11:54:59 +09:00
..
active_record/connection_adapters Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
assets
cases Add new error class QueryCanceled which will be raised when canceling statement due to user request (#31235) 2017-11-27 11:54:59 +09:00
fixtures Set counter caches to correct values in fixtures 2017-11-08 20:45:43 +02:00
migrations Unify the internal source control .keep file name 2017-08-24 13:40:26 +09:00
models try using regexes 2017-11-09 22:42:15 +10:30
schema Ensure apply_join_dependency for collection_cache_key if eager-loading is needed 2017-11-06 03:34:15 +09:00
support Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
.gitignore
config.example.yml
config.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00