Fix an issue with where clause with a dot character.

Fix an issue with rails 3.2.13 where a SQL query with a condition value containing dot character causes join query based eager loading.
Add a test case to rails 3.2.13 for a SQL query with a condition value containing dot characters.

Bug 1018392