2
我目前正在使用来自脱脂框架映射器与MS SQL服务器:F3区分大小写映射错误
$reports = new DB\SQL\Mapper($f3->get('DB'),'Reports');
我碰到下面的错误日志:
PDOStatement对象:[微软] [用于SQL Server的ODBC驱动程序11] [SQL Server]无效的对象名称'information_schema.columns'。
[C:/wamp32/www/lib/base.php:2032] Base->error(500,'PDOStatement: [Microsoft]
[ODBC Driver 11 for SQL Server][SQL Server]Invalid object name 'information_schema.columns'.')
[C:/wamp32/www/lib/db/sql.php:339] DB\SQL->exec('SELECT c.column_name AS field,c.data_type AS type,c.column_default AS defval,c.is_nullable AS nullable,t.constraint_type AS pkey FROM information_schema.columns AS c LEFT OUTER JOIN information_schema.key_column_usage AS k ON c.table_name=k.table_name AND c.column_name=k.column_name AND c.table_schema=k.table_schema AND c.table_catalog=k.table_catalog LEFT OUTER JOIN information_schema.table_constraints AS t ON k.table_name=t.table_name AND k.constraint_name=t.constraint_name AND k.table_schema=t.table_schema AND k.table_catalog=t.table_catalog WHERE c.table_name='Reports';',NULL,60)
它提取的SELECT查询,并试图直接在服务器上运行它,并意识到这是一个区分大小写问题,因为当我运行它大写正常工作。
我的问题是,我无法找到如何绕过此或强制大写的查询。文档here没有提到这样的事情。
感谢您的帮助!
请在框架错误跟踪器上报告该问题:https://github.com/bcosca/fatfree-core/issues – xfra35