~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Patrick Crews
  • Date: 2010-08-17 17:42:29 UTC
  • mfrom: (1711.1.24 build)
  • Revision ID: gleebix@gmail.com-20100817174229-e28p5025ndgkkxif
Rollup patch - optimizer fixes, mutex removal, client cleanup, translations update

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
      of the INSERT ... ON DUPLICATE KEY UPDATE no matter whether the row
115
115
      was actually changed or not.
116
116
*/
117
 
typedef struct st_copy_info 
 
117
struct CopyInfo 
118
118
{
119
119
  ha_rows records; /**< Number of processed records */
120
120
  ha_rows deleted; /**< Number of deleted records */
129
129
  List<Item> *update_fields;
130
130
  List<Item> *update_values;
131
131
  /* for VIEW ... WITH CHECK OPTION */
132
 
} COPY_INFO;
133
 
 
134
 
typedef struct drizzled_lock_st
 
132
 
 
133
  CopyInfo() :
 
134
    records(0),
 
135
    deleted(0),
 
136
    updated(0),
 
137
    copied(0),
 
138
    error_count(0),
 
139
    touched(0),
 
140
    escape_char(0),
 
141
    last_errno(0),
 
142
    ignore(0),
 
143
    update_fields(0),
 
144
    update_values(0)
 
145
  { }
 
146
 
 
147
};
 
148
 
 
149
struct DrizzleLock
135
150
{
136
151
  Table **table;
137
152
  uint32_t table_count;
138
153
  uint32_t lock_count;
139
154
  THR_LOCK_DATA **locks;
140
 
} DRIZZLE_LOCK;
 
155
 
 
156
  DrizzleLock() :
 
157
    table(0),
 
158
    table_count(0),
 
159
    lock_count(0),
 
160
    locks(0)
 
161
  { }
 
162
 
 
163
};
141
164
 
142
165
} /* namespace drizzled */
143
166
 
1543
1566
 * A structure used to describe sort information
1544
1567
 * for a field or item used in ORDER BY.
1545
1568
 */
1546
 
typedef struct st_sort_field 
 
1569
struct SortField 
1547
1570
{
1548
1571
  Field *field; /**< Field to sort */
1549
1572
  Item  *item; /**< Item if not sorting fields */
1552
1575
  Item_result result_type; /**< Type of item */
1553
1576
  bool reverse; /**< if descending sort */
1554
1577
  bool need_strxnfrm;   /**< If we have to use strxnfrm() */
1555
 
} SORT_FIELD;
1556
 
 
1557
 
typedef struct st_sort_buffer 
1558
 
{
1559
 
  uint32_t index;       /* 0 or 1 */
1560
 
  uint32_t sort_orders;
1561
 
  uint32_t change_pos; /* If sort-fields changed */
1562
 
  char **buff;
1563
 
  SORT_FIELD *sortorder;
1564
 
} SORT_BUFFER;
 
1578
 
 
1579
  SortField() :
 
1580
    field(0),
 
1581
    item(0),
 
1582
    length(0),
 
1583
    suffix_length(0),
 
1584
    result_type(STRING_RESULT),
 
1585
    reverse(0),
 
1586
    need_strxnfrm(0)
 
1587
  { }
 
1588
 
 
1589
};
1565
1590
 
1566
1591
} /* namespace drizzled */
1567
1592