fix LOCATE expression on SQL Anywhere
fix LOCATE expression offset evaluation on SQLite
add functional tests for LOCATE expressions
fix CS
Merge pull request #559 from deeky666/fix-sqlanywhere-locate-expression

Fix LOCATE expression on SQL Anywhere and SQLite