Skip to content

Instantly share code, notes, and snippets.

@salipro4ever
Created April 19, 2017 07:59
Show Gist options
  • Save salipro4ever/5184ddd44124ad2f1fa0a0f63da9c680 to your computer and use it in GitHub Desktop.
Save salipro4ever/5184ddd44124ad2f1fa0a0f63da9c680 to your computer and use it in GitHub Desktop.
FUELPHP - bug sqlsrv
SQLSTATE[42000]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]'NAMES' is not a recognized SET option.
---------------
'default' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => 'sqlsrv:Server=localhost;Database=HOURGLASS_DEV',
'username' => 'sa',
'password' => '123456'
),
'identifier' => ''
),
=> sử dụng type "sqlsrv", hoac "dblib"
Database_Sqlsrv_Connection <= BUG
if (php_uname('s') !== 'Windows')
=>
if (strpos(php_uname('s'),'Windows') === false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment