original_string: public function update($collectionName, $data)
      {
          $sql = $this->dialect->grammarUpdate($collectionName, $data);
  
          $stid = oci_parse($this->raw, $sql);
  
          oci_bind_by_name($stid, ":id", $data['id']);
  
          foreach ($data as $key => $value) {
              oci_bind_by_name($stid, ":".$key, $data[$key]);
          }
  
          $result = oci_execute($stid);
  
          oci_free_statement($stid);
  
          return $result;
      }
code: public function update($collectionName, $data)
      {
          $sql = $this->dialect->grammarUpdate($collectionName, $data);
  
          $stid = oci_parse($this->raw, $sql);
  
          oci_bind_by_name($stid, ":id", $data['id']);
  
          foreach ($data as $key => $value) {
              oci_bind_by_name($stid, ":".$key, $data[$key]);
          }
  
          $result = oci_execute($stid);
  
          oci_free_statement($stid);
  
          return $result;
      }
code_tokens: public function update ( $ collectionName , $ data ) { $ sql = $ this -> dialect -> grammarUpdate ( $ collectionName , $ data ) ; $ stid = oci_parse ( $ this -> raw , $ sql ) ; oci_bind_by_name ( $ stid , ":id" , $ data [ 'id' ] ) ; foreach ( $ data as $ key => $ value ) { oci_bind_by_name ( $ stid , ":" . $ key , $ data [ $ key ] ) ; } $ result = oci_execute ( $ stid ) ; oci_free_statement ( $ stid ) ; return $ result ; }
docstring: Perform update to a document.
  
  @param string $collectionName
  @param mixed $data
  
  @return bool
docstring_tokens: Perform update to a document .