Skip to content

Commit 47bd987

Browse files
author
Dmytro Boiko
committed
Fix bug #25665: Added CAST Timestamp column to signed
1 parent a7759b6 commit 47bd987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function close()
375375
$this->gcCalled = false;
376376

377377
// delete the session records that have expired
378-
$sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - $this->timeCol";
378+
$sql = "DELETE FROM $this->table WHERE $this->lifetimeCol < :time - CAST($this->timeCol AS SIGNED)";
379379

380380
$stmt = $this->pdo->prepare($sql);
381381
$stmt->bindValue(':time', time(), \PDO::PARAM_INT);

0 commit comments

Comments
 (0)