Added support for case sensitive databases like sqlite and oracle.
This commit is contained in:
parent
4d448dda8a
commit
56760053f9
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ class Channel::EmailParser
|
||||||
map.each { |item|
|
map.each { |item|
|
||||||
if mail[ item[0].to_sym ]
|
if mail[ item[0].to_sym ]
|
||||||
if item[1].where( item[3].to_sym => mail[ item[0].to_sym ] ).first
|
if item[1].where( item[3].to_sym => mail[ item[0].to_sym ] ).first
|
||||||
attributes[ item[2].to_sym ] = item[1].where( item[3].to_sym => mail[ item[0].to_sym ] ).first.id
|
attributes[ item[2].to_sym ] = item[1].where( "lower(#{item[3]}) = ?", mail[ item[0].to_sym ].downcase ).first.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue