laravel-pdo-odbc icon indicating copy to clipboard operation
laravel-pdo-odbc copied to clipboard

Server prop in DSN

Open mi-um opened this issue 1 year ago • 1 comments

That's in the 1.2-dev branch.

I'm using the "dynamic" configuration in database.php similar to

'odbc-connection-name' => [
    'driver' => 'snowflake',
    'odbc_driver' => 'Snowflake path Driver',
    'server' => 'host.example.com'
    'username' => 'username',
    'password' => 'password',
    'warehouse' => 'warehouse name',
    'schema' => 'PUBLIC',
]

Then I receive this error message:

PDOException  SQLSTATE[08001] SQLDriverConnect: -1 [Snowflake][DSI] An error occurred while attempting to retrieve the error message for key 'UnableToEstConn' with message parameters ['{[SERVER]}'] and component ID 1: Error message file was empty

When I remove the "server" property from the $ignoreProps in src/ODBCConnector.php:70 it works but I'm unsure about possible side effects.

mi-um avatar Jun 09 '23 19:06 mi-um