original_string: public function insert($collectionName, $data)
      {
          $id = 0;
          $sql = $this->dialect->grammarInsert($collectionName, $data);
  
          $stid = oci_parse($this->raw, $sql);
  
          //Fixme : problem from other oracle dialect on method insert
          oci_bind_by_name($stid, ":id", $id,-1,SQLT_INT);
  
          foreach ($data as $key => $value) {
              oci_bind_by_name($stid, ":".$key, $data[$key]);
          }
  
          oci_execute($stid);
  
          oci_free_statement($stid);
  
          return $id;
      }
code: public function insert($collectionName, $data)
      {
          $id = 0;
          $sql = $this->dialect->grammarInsert($collectionName, $data);
  
          $stid = oci_parse($this->raw, $sql);
  
          //Fixme : problem from other oracle dialect on method insert
          oci_bind_by_name($stid, ":id", $id,-1,SQLT_INT);
  
          foreach ($data as $key => $value) {
              oci_bind_by_name($stid, ":".$key, $data[$key]);
          }
  
          oci_execute($stid);
  
          oci_free_statement($stid);
  
          return $id;
      }
code_tokens: public function insert ( $ collectionName , $ data ) { $ id = 0 ; $ sql = $ this -> dialect -> grammarInsert ( $ collectionName , $ data ) ; $ stid = oci_parse ( $ this -> raw , $ sql ) ; //Fixme : problem from other oracle dialect on method insert oci_bind_by_name ( $ stid , ":id" , $ id , - 1 , SQLT_INT ) ; foreach ( $ data as $ key => $ value ) { oci_bind_by_name ( $ stid , ":" . $ key , $ data [ $ key ] ) ; } oci_execute ( $ stid ) ; oci_free_statement ( $ stid ) ; return $ id ; }
docstring: Perform insert new document to database.
  
  @param string $collectionName
  @param mixed $data
  
  @return bool
docstring_tokens: Perform insert new document to database .