Skip to content

Commit

Permalink
Improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 18, 2024
1 parent facc289 commit 6b88387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/field_test/experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def results(goal: nil)
column =
if FieldTest.legacy_participants
:participant
elsif adapter_name =~ /postg/i # postgres
elsif adapter_name.match?(/postg/i) # postgres
"(participant_type, participant_id)"
elsif adapter_name =~ /mysql/i
elsif adapter_name.match?(/mysql/i)
"COALESCE(participant_type, ''), participant_id"
else
# SQLite supports single column
Expand Down

0 comments on commit 6b88387

Please sign in to comment.