~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_state.c

  • Committer: Monty Taylor
  • Date: 2008-08-02 01:03:15 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802010315-65h5938pymg9d99z
Moved m4 macros to top-level m4 dir, per GNU standards (and where gettext wanted it :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Functions to map mysqld errno to sql_state */
17
 
#include <drizzled/global.h>
 
17
 
 
18
#include "global.h"
18
19
#include <drizzled/error.h>
19
20
#include <libdrizzle/drizzle.h>
20
21
#include "sql_state.h"
21
22
 
22
 
const char *drizzle_errno_to_sqlstate(uint mysql_errno)
 
23
const char *mysql_errno_to_sqlstate(uint mysql_errno)
23
24
{
24
25
  uint first=0, end= array_elements(sqlstate_map)-1;
25
26
  struct st_map_errno_to_sqlstate *map;