{"record":{"id":"fef321312812ca5f","repo":"yiisoft/yii2","slug":"does-not-support-enabling-disabling-integrity-c","errorCode":null,"errorMessage":"{} does not support enabling/disabling integrity check.","messagePattern":"(.+?) does not support enabling/disabling integrity check\\.","errorType":"exception","errorClass":"yii\\base\\NotSupportedException","httpStatus":null,"severity":"error","filePath":"framework/db/QueryBuilder.php","lineNumber":1078,"sourceCode":"     * @throws NotSupportedException if this is not supported by the underlying DBMS\n     * @since 2.0.16\n     */\n    public function executeResetSequence($table, $value = null)\n    {\n        $this->db->createCommand()->resetSequence($table, $value)->execute();\n    }\n\n    /**\n     * Builds a SQL statement for enabling or disabling integrity check.\n     * @param bool $check whether to turn on or off the integrity check.\n     * @param string $schema the schema of the tables. Defaults to empty string, meaning the current or default schema.\n     * @param string $table the table name. Defaults to empty string, meaning that no table will be changed.\n     * @return string the SQL statement for checking integrity\n     * @throws NotSupportedException if this is not supported by the underlying DBMS\n     */\n    public function checkIntegrity($check = true, $schema = '', $table = '')\n    {\n        throw new NotSupportedException($this->db->getDriverName() . ' does not support enabling/disabling integrity check.');\n    }\n\n    /**\n     * Builds a SQL command for adding comment to column.\n     *\n     * @param string $table the table whose column is to be commented. The table name will be properly quoted by the method.\n     * @param string $column the name of the column to be commented. The column name will be properly quoted by the method.\n     * @param string $comment the text of the comment to be added. The comment will be properly quoted by the method.\n     * @return string the SQL statement for adding comment on column\n     * @since 2.0.8\n     */\n    public function addCommentOnColumn($table, $column, $comment)\n    {\n        return 'COMMENT ON COLUMN ' . $this->db->quoteTableName($table) . '.' . $this->db->quoteColumnName($column) . ' IS ' . $this->db->quoteValue($comment);\n    }\n\n    /**\n     * Builds a SQL command for adding comment to table.","sourceCodeStart":1060,"sourceCodeEnd":1096,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/db/QueryBuilder.php#L1060-L1096","documentation":"Error \"{} does not support enabling/disabling integrity check.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/db/QueryBuilder.php:1078 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}