~jaypipes/drizzle/proto-definitions

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • Committer: Jay Pipes
  • Date: 2008-09-25 18:13:26 UTC
  • mfrom: (352.5.30 codestyle)
  • Revision ID: jay@mysql.com-20080925181326-2z7pr377hcvf28qt
Merged in trunk and added additional definition wrappers for proto buffer messages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2006 MySQL AB
2
 
 
3
 
   This program is free software; you can redistribute it and/or modify
4
 
   it under the terms of the GNU General Public License as published by
5
 
   the Free Software Foundation; version 2 of the License.
6
 
 
7
 
   This program is distributed in the hope that it will be useful,
8
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
   GNU General Public License for more details.
11
 
 
12
 
   You should have received a copy of the GNU General Public License
13
 
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; version 2 of the License.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
15
19
 
16
20
 
17
21
/* Classes in mysql */
1190
1194
  } transaction;
1191
1195
  Field      *dup_field;
1192
1196
  sigset_t signals;
1193
 
#ifdef SIGNAL_WITH_VIO_CLOSE
1194
 
  Vio* active_vio;
1195
 
#endif
1196
1197
  /*
1197
1198
    This is to track items changed during execution of a prepared
1198
1199
    statement/stored procedure. It's created by
1559
1560
  void cleanup(void);
1560
1561
  void cleanup_after_query();
1561
1562
  bool store_globals();
1562
 
#ifdef SIGNAL_WITH_VIO_CLOSE
1563
 
  inline void set_active_vio(Vio* vio)
1564
 
  {
1565
 
    pthread_mutex_lock(&LOCK_delete);
1566
 
    active_vio = vio;
1567
 
    pthread_mutex_unlock(&LOCK_delete);
1568
 
  }
1569
 
  inline void clear_active_vio()
1570
 
  {
1571
 
    pthread_mutex_lock(&LOCK_delete);
1572
 
    active_vio = 0;
1573
 
    pthread_mutex_unlock(&LOCK_delete);
1574
 
  }
1575
 
  void close_active_vio();
1576
 
#endif
1577
1563
  void awake(THD::killed_state state_to_set);
1578
1564
 
1579
1565
#ifndef DRIZZLE_CLIENT
1697
1683
    return;
1698
1684
  }
1699
1685
  inline bool vio_ok() const { return net.vio != 0; }
1700
 
  /** Return false if connection to client is broken. */
1701
 
  bool vio_is_connected();
 
1686
 
1702
1687
  /**
1703
1688
    Mark the current error as fatal. Warning: this does not
1704
1689
    set any error, it sets a property of the error, so must be