original_string: private function getInsertStatement($sessionId, $sessionData, $maxlifetime)
      {
          switch ($this->driver) {
              case 'oci':
                  $data = fopen('php://memory', 'r+');
                  fwrite($data, $sessionData);
                  rewind($data);
                  $sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, EMPTY_BLOB(), :lifetime, :time) RETURNING $this->dataCol into :data";
                  break;
              default:
                  $data = $sessionData;
                  $sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, :data, :lifetime, :time)";
                  break;
          }
  
          $stmt = $this->pdo->prepare($sql);
          $stmt->bindParam(':id', $sessionId, \PDO::PARAM_STR);
          $stmt->bindParam(':data', $data, \PDO::PARAM_LOB);
          $stmt->bindParam(':lifetime', $maxlifetime, \PDO::PARAM_INT);
          $stmt->bindValue(':time', time(), \PDO::PARAM_INT);
  
          return $stmt;
      }
code: private function getInsertStatement($sessionId, $sessionData, $maxlifetime)
      {
          switch ($this->driver) {
              case 'oci':
                  $data = fopen('php://memory', 'r+');
                  fwrite($data, $sessionData);
                  rewind($data);
                  $sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, EMPTY_BLOB(), :lifetime, :time) RETURNING $this->dataCol into :data";
                  break;
              default:
                  $data = $sessionData;
                  $sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, :data, :lifetime, :time)";
                  break;
          }
  
          $stmt = $this->pdo->prepare($sql);
          $stmt->bindParam(':id', $sessionId, \PDO::PARAM_STR);
          $stmt->bindParam(':data', $data, \PDO::PARAM_LOB);
          $stmt->bindParam(':lifetime', $maxlifetime, \PDO::PARAM_INT);
          $stmt->bindValue(':time', time(), \PDO::PARAM_INT);
  
          return $stmt;
      }
code_tokens: private function getInsertStatement ( $ sessionId , $ sessionData , $ maxlifetime ) { switch ( $ this -> driver ) { case 'oci' : $ data = fopen ( 'php://memory' , 'r+' ) ; fwrite ( $ data , $ sessionData ) ; rewind ( $ data ) ; $ sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, EMPTY_BLOB(), :lifetime, :time) RETURNING $this->dataCol into :data" ; break ; default : $ data = $ sessionData ; $ sql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, :data, :lifetime, :time)" ; break ; } $ stmt = $ this -> pdo -> prepare ( $ sql ) ; $ stmt -> bindParam ( ':id' , $ sessionId , \ PDO :: PARAM_STR ) ; $ stmt -> bindParam ( ':data' , $ data , \ PDO :: PARAM_LOB ) ; $ stmt -> bindParam ( ':lifetime' , $ maxlifetime , \ PDO :: PARAM_INT ) ; $ stmt -> bindValue ( ':time' , time ( ) , \ PDO :: PARAM_INT ) ; return $ stmt ; }
docstring: Returns an insert statement supported by the database for writing session data.
  
  @param string $sessionId   Session ID
  @param string $sessionData Encoded session data
  @param int    $maxlifetime session.gc_maxlifetime
  
  @return \PDOStatement The insert statement
docstring_tokens: Returns an insert statement supported by the database for writing session data .