Class: PGStatementLine

Inherits:
PGLogLine show all
Defined in:
lib/pqa.rb

Constant Summary

Constants inherited from PGLogLine

PGLogLine::DEBUG

Instance Attribute Summary

Attributes inherited from PGLogLine

#cmd_no, #connection_id, #duration, #ignore, #line_no, #text

Instance Method Summary collapse

Methods inherited from PGLogLine

#dump, #initialize, #parse_duration, #to_s

Constructor Details

This class inherits a constructor from PGLogLine

Instance Method Details

#append_to(errors) ⇒ Object



349
350
351
352
353
354
355
356
# File 'lib/pqa.rb', line 349

def append_to(errors)
  if errors.last
    errors.last.append_statement(@text)
  else
    $stderr.puts "Detail for no previous error"
  end
  return nil
end