~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/diagnostics_area.h

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

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, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
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(drizzled::error_t sql_errno_arg, const char *message_arg);
 
57
  void set_error_status(uint32_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
 
  drizzled::error_t sql_errno() const;
 
71
  uint32_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
 
  drizzled::error_t m_sql_errno;
 
87
  uint32_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
 
 
99
98
  /**
100
99
    The number of rows affected by the last statement. This is
101
100
    semantically close to session->row_count_func, but has a different