Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix datatypes to work with PDOSessionStorage implementation.

  • Loading branch information...
commit fe7101f640db52909f97b99a9c5a25b89347eb2e 1 parent e260497
@beberlei authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 CacheWarmer/DbSessionTable.php
View
4 CacheWarmer/DbSessionTable.php
@@ -65,8 +65,8 @@ public function warmUp($cacheDir)
if ( ! $stmt->fetch()) {
$sql = "CREATE TABLE " . $this->dbOptions['db_table'] . " (" .
$this->dbOptions['db_id_col'] . " VARCHAR(" . $this->dbOptions['db_id_length'].") PRIMARY KEY NONCLUSTERED, " .
- $this->dbOptions['db_data_col'] . " VARBINARY(MAX), " .
- $this->dbOptions['db_time_col'] . " DATETIME2)";
+ $this->dbOptions['db_data_col'] . " NVARCHAR(MAX), " .
+ $this->dbOptions['db_time_col'] . " INT)";
$this->pdo->exec($sql);
$sql = "CREATE CLUSTERED INDEX sess_time_idx ON " .
Please sign in to comment.
Something went wrong with that request. Please try again.