~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/sql_common.h

  • Committer: Monty Taylor
  • Date: 2008-09-16 06:40:44 UTC
  • mfrom: (390.1.7 client-split)
  • Revision ID: monty@inaugust.com-20080916064044-vbgmaf36cvm8jufx
Merged in from client-split.

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 MySQL
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
 
8
 *  the Free Software Foundation; version 2 of the License.
10
9
 *
11
10
 *  This program is distributed in the hope that it will be useful,
12
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
20
#ifndef _libdrizzle_sql_common_h
22
21
#define _libdrizzle_sql_common_h
23
22
 
24
 
extern const char       *unknown_sqlstate;
25
 
extern const char       *cant_connect_sqlstate;
26
 
extern const char       *not_error_sqlstate;
27
 
 
28
23
#ifdef  __cplusplus
29
24
extern "C" {
30
25
#endif
31
26
 
32
 
DRIZZLE_FIELD *unpack_fields(DRIZZLE_DATA *data, uint fields,
33
 
                             bool default_value);
34
 
void free_rows(DRIZZLE_DATA *cur);
35
 
void free_old_query(DRIZZLE *drizzle);
36
 
void end_server(DRIZZLE *drizzle);
37
 
bool drizzle_reconnect(DRIZZLE *drizzle);
38
 
void net_clear_error(NET *net);
39
 
void set_drizzle_error(DRIZZLE *drizzle, int errcode, const char *sqlstate);
40
27
#ifdef  __cplusplus
41
28
}
42
29
#endif