Patches for check_mysql_query -- Check value of specified column [sf#1851035] [#860]