Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3][bug] Can't connect to MS SQL Server #14992

Closed
mazedlx opened this issue Aug 24, 2016 · 3 comments
Closed

[5.3][bug] Can't connect to MS SQL Server #14992

mazedlx opened this issue Aug 24, 2016 · 3 comments

Comments

@mazedlx
Copy link

mazedlx commented Aug 24, 2016

Connection to a MS SQL Server doesn't work anymore under 5.3.

Steps to reproduce:

Changes in config/database.php (add to connections):

 'sqlsrv' => [
    'driver' => 'sqlsrv',
            'host' => env('DB_HOST', 'localhost'),
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
            'charset' => 'utf8',
            'prefix' => '',
        ]

Credentials in .env:

DB_CONNECTION=sqlsrv
DB_HOST=myhost
DB_DATABASE=mydb
DB_USERNAME=user
DB_PASSWORD=pwd

Calling a simple DB::select('select @@version') results in

FatalErrorException in SqlServerConnection.php line 14:
Declaration of Illuminate\Database\SqlServerConnection::transaction() must be compatible with Illuminate\Database\ConnectionInterface::transaction(Closure $callback, $attempts = 1)
in SqlServerConnection.php line 14
@GrahamCampbell
Copy link
Member

Thanks, but this is fixed in 5.3.1-dev. :)

@GrahamCampbell
Copy link
Member

v5.3.1 will be tagged soon that addresses this.

@mazedlx
Copy link
Author

mazedlx commented Aug 24, 2016

Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants