# FEATURE REQUEST (ban changes sql\_mode on session level)

**URL:** <https://forums.percona.com/t/feature-request-ban-changes-sql-mode-on-session-level/5375>\
**Category:** Other MySQL® Questions\
**Created:** [January 26, 2017, 2:00pm UTC](https://forums.percona.com/t/feature-request-ban-changes-sql-mode-on-session-level/5375 "2017-01-26T14:00:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksey.filippov](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@aleksey.filippov](https://forums.percona.com/u/aleksey.filippov)\
**Post date:** [January 26, 2017, 2:00pm UTC](https://forums.percona.com/t/feature-request-ban-changes-sql-mode-on-session-level/5375/1 "2017-01-26T14:00:13Z")

</div>

We have global variable sql\_mode set to STRICT\_ALL\_TABLES(mysqld.cnf).  
But someone changes this variable on session level, and from time to time we have problem with data in our database.  
And there is no ability to ban changing sql\_mode on session level.  
I think many others have same problem, and it could be good decision to have some mysqld.cnf parameter(global variable) than allow to ban changing sql\_mode on session level.  
Actually, great decision is to have ability to ban setting session variables listed in some global variable, for example 🙂
