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