~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/found_rows.cc

  • Committer: Brian Aker
  • Date: 2010-12-08 22:35:56 UTC
  • mfrom: (1819.9.158 update-innobase)
  • Revision ID: brian@tangent.org-20101208223556-37mi4omqg7lkjzf3
Merge in Stewart's changes, 1.3 changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
21
 
#include CSTDINT_H
22
 
#include <drizzled/functions/found_rows.h>
 
20
#include "config.h"
 
21
 
 
22
#include <drizzled/function/found_rows.h>
23
23
#include <drizzled/session.h>
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
int64_t Item_func_found_rows::val_int()
26
29
{
27
30
  assert(fixed == 1);
28
 
  Session *session= current_session;
29
31
 
30
 
  return session->found_rows();
 
32
  return getSession().found_rows();
31
33
}
32
34
 
 
35
} /* namespace drizzled */