{"record":{"id":"a412d8071fe60d8b","repo":"yiisoft/yii2","slug":"connection-does-not-support-reading-schema-informa","errorCode":null,"errorMessage":"Connection does not support reading schema information for '$driver' DBMS.","messagePattern":"Connection does not support reading schema information for '\\$driver' DBMS\\.","errorType":"exception","errorClass":"yii\\base\\NotSupportedException","httpStatus":null,"severity":"error","filePath":"framework/db/Connection.php","lineNumber":878,"sourceCode":"     */\n    public function getSchema()\n    {\n        if ($this->_schema !== null) {\n            return $this->_schema;\n        }\n\n        $driver = $this->getDriverName();\n        if (isset($this->schemaMap[$driver])) {\n            $config = !is_array($this->schemaMap[$driver]) ? ['class' => $this->schemaMap[$driver]] : $this->schemaMap[$driver];\n            $config['db'] = $this;\n\n            $this->_schema = Yii::createObject($config);\n            $this->restoreQueryBuilderConfiguration();\n\n            return $this->_schema;\n        }\n\n        throw new NotSupportedException(\"Connection does not support reading schema information for '$driver' DBMS.\");\n    }\n\n    /**\n     * Returns the query builder for the current DB connection.\n     * @return TQueryBuilder the query builder for the current DB connection.\n     */\n    public function getQueryBuilder()\n    {\n        return $this->getSchema()->getQueryBuilder();\n    }\n\n    /**\n     * Can be used to set [[QueryBuilder]] configuration via Connection configuration array.\n     *\n     * @param array $value the [[QueryBuilder]] properties to be configured.\n     * @since 2.0.14\n     */\n    public function setQueryBuilder($value)","sourceCodeStart":860,"sourceCodeEnd":896,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/db/Connection.php#L860-L896","documentation":"Error \"Connection does not support reading schema information for '$driver' DBMS.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/db/Connection.php:878 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"}