Fixes bug with mixed-case fields in query and scan commands

Closes-bug: #1337271
Change-Id: Ib957443bed5cf000a2b3334e72a8f6d612440c0e
Merge "Fixes bug with mixed-case fields in query and scan commands"