~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/diagnostics_area.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
54
54
                     ha_rows found_rows_arg, uint64_t last_insert_id_arg,
55
55
                     const char *message);
56
56
  void set_eof_status(Session *session);
57
 
  void set_error_status(uint32_t sql_errno_arg, const char *message_arg);
 
57
  void set_error_status(drizzled::error_t sql_errno_arg, const char *message_arg);
58
58
 
59
59
  void disable_status();
60
60
 
68
68
  enum_diagnostics_status status() const { return m_status; }
69
69
 
70
70
  const char *message() const;
71
 
  uint32_t sql_errno() const;
 
71
  drizzled::error_t sql_errno() const;
72
72
  uint32_t server_status() const;
73
73
  ha_rows affected_rows() const;
74
74
  ha_rows found_rows() const;
84
84
    SQL error number. One of ER_ codes from share/errmsg.txt.
85
85
    Set by set_error_status.
86
86
  */
87
 
  uint32_t m_sql_errno;
 
87
  drizzled::error_t m_sql_errno;
88
88
 
89
89
  /**
90
90
    Copied from session->server_status when the diagnostics area is assigned.
95
95
    Assigned by OK, EOF or ERROR.
96
96
  */
97
97
  uint32_t m_server_status;
 
98
 
98
99
  /**
99
100
    The number of rows affected by the last statement. This is
100
101
    semantically close to session->row_count_func, but has a different