If you encounter problems with certain queries being executed twice, refer to issue #8.
This error can occur on macOS. Make sure you have the PHP extensions odbc
and
PDO_ODBC
installed. If you receive the error message
internal error, unexpected SHLIBEXT value
, you should change the used cursor
library as shown below:
'odbc-connection-name' => [
'driver' => 'odbc',
// odbc: will be prefixed
'dsn' => 'Driver={Your Snowflake Driver};Server=snowflake.example.com',
// ....
'options' => [
\PDO::ODBC_ATTR_USE_CURSOR_LIBRARY => \PDO::ODBC_SQL_USE_DRIVER
// or
// 1000 => 2
]
]
// \PDO::ODBC_ATTR_USE_CURSOR_LIBRARY equals 1000
// \PDO::ODBC_SQL_USE_DRIVER equals 2
Check other available options here