Class: Appstats::BadGroupTestQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/appstats/test_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#group_query_to_sqlObject

Returns the value of attribute group_query_to_sql.



39
40
41
# File 'lib/appstats/test_query.rb', line 39

def group_query_to_sql
  @group_query_to_sql
end

#queryObject

Returns the value of attribute query.



39
40
41
# File 'lib/appstats/test_query.rb', line 39

def query
  @query
end

#query_to_sqlObject

Returns the value of attribute query_to_sql.



39
40
41
# File 'lib/appstats/test_query.rb', line 39

def query_to_sql
  @query_to_sql
end

Instance Method Details

#db_connectionObject



46
47
48
# File 'lib/appstats/test_query.rb', line 46

def db_connection
  Appstats.connection
end

#process_queryObject



41
42
43
44
# File 'lib/appstats/test_query.rb', line 41

def process_query
  query.query_to_sql = "select count(*) as num from appstats_test_objects"
  query.group_query_to_sql = "this is not valid sql"
end