In my code base I'm using # as a delimiter, but the # is being copied into the underlying SQL, which is invalid for SQL. Attached is the hot fix that I've applied to work around the issue.