~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/drizzle.h

  • Committer: Brian Aker
  • Date: 2008-07-14 16:09:55 UTC
  • Revision ID: brian@tangent.org-20080714160955-v5nzzyjj5hhv7bz6
Removing a few "additional" ways of saying uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
typedef char **MYSQL_ROW;               /* return data as array of strings */
93
93
typedef unsigned int MYSQL_FIELD_OFFSET; /* offset to current field */
94
94
 
95
 
#ifndef _global_h
96
 
#if defined(NO_CLIENT_LONG_LONG)
97
 
typedef unsigned long my_uint64_t;
98
 
#else
99
 
typedef unsigned long long my_uint64_t;
100
 
#endif
101
 
#endif
102
 
 
103
95
#include "typelib.h"
104
96
 
105
 
#define MYSQL_COUNT_ERROR (~(my_uint64_t) 0)
 
97
#define MYSQL_COUNT_ERROR (~(uint64_t) 0)
106
98
 
107
99
/* backward compatibility define - to be removed eventually */
108
100
#define ER_WARN_DATA_TRUNCATED WARN_DATA_TRUNCATED
122
114
  MYSQL_ROWS *data;
123
115
  struct embedded_query_result *embedded_info;
124
116
  MEM_ROOT alloc;
125
 
  my_uint64_t rows;
 
117
  uint64_t rows;
126
118
  unsigned int fields;
127
119
  /* extra info for embedded library */
128
120
  void *extension;
212
204
  struct charset_info_st *charset;
213
205
  MYSQL_FIELD   *fields;
214
206
  MEM_ROOT      field_alloc;
215
 
  my_uint64_t affected_rows;
216
 
  my_uint64_t insert_id;                /* id if insert on table with NEXTNR */
217
 
  my_uint64_t extra_info;               /* Not used */
 
207
  uint64_t affected_rows;
 
208
  uint64_t insert_id;           /* id if insert on table with NEXTNR */
 
209
  uint64_t extra_info;          /* Not used */
218
210
  unsigned long thread_id;              /* Id for connection in server */
219
211
  unsigned long packet_length;
220
212
  unsigned int  port;
249
241
 
250
242
 
251
243
typedef struct st_mysql_res {
252
 
  my_uint64_t  row_count;
 
244
  uint64_t  row_count;
253
245
  MYSQL_FIELD   *fields;
254
246
  MYSQL_DATA    *data;
255
247
  MYSQL_ROWS    *data_cursor;
320
312
  Should definitely be used if one uses shared libraries.
321
313
*/
322
314
 
323
 
my_uint64_t STDCALL mysql_num_rows(MYSQL_RES *res);
 
315
uint64_t STDCALL mysql_num_rows(MYSQL_RES *res);
324
316
unsigned int STDCALL mysql_num_fields(MYSQL_RES *res);
325
317
my_bool STDCALL mysql_eof(MYSQL_RES *res);
326
318
MYSQL_FIELD *STDCALL mysql_fetch_field_direct(MYSQL_RES *res,
330
322
MYSQL_FIELD_OFFSET STDCALL mysql_field_tell(MYSQL_RES *res);
331
323
 
332
324
unsigned int STDCALL mysql_field_count(MYSQL *mysql);
333
 
my_uint64_t STDCALL mysql_affected_rows(MYSQL *mysql);
334
 
my_uint64_t STDCALL mysql_insert_id(MYSQL *mysql);
 
325
uint64_t STDCALL mysql_affected_rows(MYSQL *mysql);
 
326
uint64_t STDCALL mysql_insert_id(MYSQL *mysql);
335
327
unsigned int STDCALL mysql_errno(MYSQL *mysql);
336
328
const char * STDCALL mysql_error(MYSQL *mysql);
337
329
const char *STDCALL mysql_sqlstate(MYSQL *mysql);
410
402
                                      const void *arg);
411
403
void            STDCALL mysql_free_result(MYSQL_RES *result);
412
404
void            STDCALL mysql_data_seek(MYSQL_RES *result,
413
 
                                        my_uint64_t offset);
 
405
                                        uint64_t offset);
414
406
MYSQL_ROW_OFFSET STDCALL mysql_row_seek(MYSQL_RES *result,
415
407
                                                MYSQL_ROW_OFFSET offset);
416
408
MYSQL_FIELD_OFFSET STDCALL mysql_field_seek(MYSQL_RES *result,