Skip to content

Commit

Permalink
[HttpFoundation][Session] Fix bug in PDO Session Storage with SQLSRV …
Browse files Browse the repository at this point in the history
…making assumptions about parameters with length being OUTPUT not INPUT parameters.
  • Loading branch information
beberlei committed Feb 27, 2012
1 parent f9f7640 commit dc2d5a0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@ public function sessionRead($id)
$sql = "SELECT $dbDataCol FROM $dbTable WHERE $dbIdCol = :id";

$stmt = $this->db->prepare($sql);
$stmt->bindParam(':id', $id, \PDO::PARAM_STR, 255);
$stmt->bindParam(':id', $id, \PDO::PARAM_STR);

$stmt->execute();
// it is recommended to use fetchAll so that PDO can close the DB cursor
Expand Down

0 comments on commit dc2d5a0

Please sign in to comment.