~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error/sql_state.cc

  • Committer: Brian Aker
  • Date: 2011-02-03 06:18:43 UTC
  • mfrom: (2137.1.2 alter-table)
  • Revision ID: brian@tangent.org-20110203061843-v29rse8p6pov1aax
Merge in brian's state update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <algorithm>
25
25
 
26
26
#include <drizzled/error.h>
27
 
#include <drizzled/sql_state.h>
 
27
#include <drizzled/error/sql_state.h>
28
28
 
29
29
using namespace std;
30
30
 
31
31
namespace drizzled
32
32
{
33
33
 
 
34
namespace error
 
35
{
 
36
 
34
37
struct sql_state_t
35
38
{
36
39
  drizzled::error_t drizzle_errno;
174
177
  return (a.drizzle_errno < b.drizzle_errno);
175
178
}
176
179
 
177
 
const char *drizzle_errno_to_sqlstate(drizzled::error_t drizzle_errno)
 
180
const char *convert_to_sqlstate(drizzled::error_t drizzle_errno)
178
181
{
179
182
 
180
183
  sql_state_t drizzle_err_state= {drizzle_errno, NULL, NULL};
190
193
  return "HY000";
191
194
}
192
195
 
 
196
} /* namespace error */
193
197
} /* namespace drizzled */