소스 검색

added busyTimeout

Amal Raghav 14 년 전
부모
커밋
acb657b82c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php

+ 1 - 0
src/Symfony/Component/HttpKernel/Profiler/SqliteProfilerStorage.php

@@ -31,6 +31,7 @@ class SqliteProfilerStorage extends PdoProfilerStorage
             }
             if (class_exists('SQLite3')) {
                 $db = new \SQLite3(substr($this->dsn, 7, strlen($this->dsn)), \SQLITE3_OPEN_READWRITE | \SQLITE3_OPEN_CREATE);
+                $db->busyTimeout(1000);
             } elseif (class_exists('PDO') && in_array('sqlite', \PDO::getAvailableDrivers(), true)) {
                 $db = new \PDO($this->dsn);
             } else {