Issue #191: Trim generated SQL statement