~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/found_rows.cc

  • Committer: Brian Aker
  • Date: 2010-06-22 01:08:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1635.
  • Revision ID: brian@gaz-20100622010850-eh2gi2i0e1kp0jye
Put a copy of the Session in the root of function to make use of.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
int64_t Item_func_found_rows::val_int()
29
29
{
30
30
  assert(fixed == 1);
31
 
  Session *session= current_session;
32
31
 
33
 
  return session->found_rows();
 
32
  return getSession().found_rows();
34
33
}
35
34
 
36
35
} /* namespace drizzled */