I don't know exactly what happened.
Just can say i'm using Moodle 2.9.2, was using latest existing version of "Ad-hoc database queries report" and upgraded to the 3.0 version (using web installer) when it came out in plugin database.
Fixed for me with the SQL command provided by default values check in XMLDB editor.