Patch #31555

Use Redmine::Database.mysql? instead of a regular expression

Added by Pavel Rosický 2 months ago. Updated 2 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:4.1.0

Description

this patch replaces

ActiveRecord::Base.connection.adapter_name =~ /mysql/i

with
Redmine::Database.mysql?

mysqlhelper.patch Magnifier (4.12 KB) Pavel Rosický, 2019-06-11 21:45

Associated revisions

Revision 18256
Added by Go MAEDA 2 months ago

Use Redmine::Database.mysql? instead of a regular expression (#31555).

Patch by Pavel Rosický.

History

#1 Updated by Marius BALTEANU 2 months ago

  • Target version set to Candidate for next major release

#2 Updated by Go MAEDA 2 months ago

  • Target version changed from Candidate for next major release to 4.1.0

#3 Updated by Go MAEDA 2 months ago

  • Subject changed from use database helpers to Use Redmine::Database.mysql? instead of a regular expression
  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch. Thank you for your contribution.

Also available in: Atom PDF