INT-3074: JDBC: Make generateSql as UP-TO-DATE

JIRA: https://jira.springsource.org/browse/INT-3074

**Cherry-picked to 2.2.x**