BUG-14984 validations

- A validation was added
BUG-14984 Improvement value DEBUG_SQL
Merge pull request #2455 from marcoAntonioNina/BUG-14984

BUG-14984 Improvement value DEBUG_SQL