~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/structs.h

  • Committer: Brian Aker
  • Date: 2011-12-20 07:27:58 UTC
  • mto: (2478.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2482.
  • Revision ID: brian@tangent.org-20111220072758-f11kcq2i96nq2yyy
Use constructors where we can.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
  size_t size;
171
171
  void *context;
172
172
  drizzle_query_context_free_fn *context_free_fn;
 
173
 
 
174
#ifdef __cplusplus
 
175
 
 
176
  drizzle_query_st() :
 
177
    drizzle(NULL),
 
178
    next(NULL),
 
179
    prev(NULL),
 
180
    options(0),
 
181
    state(DRIZZLE_QUERY_STATE_INIT),
 
182
    con(NULL),
 
183
    result(NULL),
 
184
    string(NULL),
 
185
    size(0),
 
186
    context(NULL),
 
187
    context_free_fn(NULL)
 
188
  { 
 
189
  }
 
190
 
 
191
#endif
173
192
};
174
193
 
175
194
/**
212
231
  size_t **field_sizes_list;
213
232
 
214
233
#ifdef __cplusplus
 
234
 
215
235
  drizzle_result_st() :
216
236
    con(NULL),
217
237
    next(NULL),
218
238
    prev(NULL),
219
239
    options(0),
220
 
    info({0}),
221
240
    error_code(0),
222
 
    sqlstate({0}),
223
241
    insert_id(0),
224
242
    warning_count(0),
225
243
    affected_rows(0),
242
260
    field_sizes(NULL),
243
261
    field_sizes_list(NULL)
244
262
  {
 
263
    info[0]= 0;
 
264
    sqlstate[0]= 0;
245
265
  }
 
266
 
246
267
#endif
247
268
};
248
269