Browse Source

Looks like SQLServer does not like persisten connections on CLI

Jose Lorenzo Rodriguez 11 years ago
parent
commit
c2e642bf63
2 changed files with 2 additions and 3 deletions
  1. 1 2
      appveyor.yml
  2. 1 1
      src/Database/Driver/Sqlserver.php

+ 1 - 2
appveyor.yml

@@ -34,5 +34,4 @@ install:
 test_script:
   - sqlcmd -S ".\SQL2008R2SP2" -U sa -P Password12! -Q "create database cakephp;"
   - cd C:\projects\cakephp
-  - "%PHP%/php.exe --version"
-  - vendor\bin\phpunit.bat --no-configuration --bootstrap tests/bootstrap.php tests/TestCase/DatabaseSuite.php
+  - vendor\bin\phpunit.bat tests\TestCase\DatabaseSuite

+ 1 - 1
src/Database/Driver/Sqlserver.php

@@ -32,7 +32,7 @@ class Sqlserver extends \Cake\Database\Driver {
  * @var array
  */
 	protected $_baseConfig = [
-		'persistent' => true,
+		'persistent' => false,
 		'host' => 'localhost\SQLEXPRESS',
 		'login' => '',
 		'password' => '',