original_string: public function currval($table, $pkey){
          $stmt = $this->query("SELECT currval('{$table}_{$pkey}_seq')");
  
          if (!$stmt)
              return false;
  
          $ret = $stmt->fetch(PDO::FETCH_NUM);
          if (!$ret){
              $stmt = null;
              return false;
          }
  
          $stmt = null;
          return $ret[0];
      }
code: public function currval($table, $pkey){
          $stmt = $this->query("SELECT currval('{$table}_{$pkey}_seq')");
  
          if (!$stmt)
              return false;
  
          $ret = $stmt->fetch(PDO::FETCH_NUM);
          if (!$ret){
              $stmt = null;
              return false;
          }
  
          $stmt = null;
          return $ret[0];
      }
code_tokens: public function currval ( $ table , $ pkey ) { $ stmt = $ this -> query ( "SELECT currval('{$table}_{$pkey}_seq')" ) ; if ( ! $ stmt ) return false ; $ ret = $ stmt -> fetch ( PDO :: FETCH_NUM ) ; if ( ! $ ret ) { $ stmt = null ; return false ; } $ stmt = null ; return $ ret [ 0 ] ; }
docstring: Return current sequence.
  
  @param string $table
docstring_tokens: Return current sequence .