[ADD] Added check for max SQL-statement limit length