aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-27 11:54:59 +0900
committerGitHub <noreply@github.com>2017-11-27 11:54:59 +0900
commit0e2cd3d749dadcdb5027d48399aea02ef74815f3 (patch)
treee3a8bbc17d2b33a0c373c7aa9343079f2f9999e9 /.rubocop.yml
parentad0630f0ae2d65bc0adda4097af8009a985b6f15 (diff)
downloadrails-0e2cd3d749dadcdb5027d48399aea02ef74815f3.tar.gz
rails-0e2cd3d749dadcdb5027d48399aea02ef74815f3.tar.bz2
rails-0e2cd3d749dadcdb5027d48399aea02ef74815f3.zip
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.
Diffstat (limited to '.rubocop.yml')
0 files changed, 0 insertions, 0 deletions