~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/display.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-01-04 09:31:58 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110104093158-smhgvkfdi2y9au3i
Tags: 2011.01.07-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
static const std::string ITEM_CAST_CHAR("ITEM_CAST_CHAR");
90
90
static const std::string ITEM_CAST_DECIMAL("ITEM_CAST_DECIMAL");
91
91
 
 
92
static const std::string STRING_RESULT_STRING("STRING");
 
93
static const std::string REAL_RESULT_STRING("REAL");
 
94
static const std::string INT_RESULT_STRING("INTEGER");
 
95
static const std::string ROW_RESULT_STRING("ROW");
 
96
static const std::string DECIMAL_RESULT_STRING("DECIMAL");
 
97
 
92
98
static const std::string YES("YES");
93
99
static const std::string NO("NO");
94
100
 
203
209
  return PROGRAM_ERROR;
204
210
}
205
211
 
 
212
const std::string &type(Item_result type)
 
213
{
 
214
  switch (type)
 
215
  {
 
216
  case STRING_RESULT:
 
217
    return STRING_RESULT_STRING;
 
218
  case REAL_RESULT:
 
219
    return REAL_RESULT_STRING;
 
220
  case INT_RESULT:
 
221
    return INT_RESULT_STRING;
 
222
  case ROW_RESULT:
 
223
    return ROW_RESULT_STRING;
 
224
  case DECIMAL_RESULT:
 
225
    return DECIMAL_RESULT_STRING;
 
226
  }
 
227
 
 
228
  assert(0);
 
229
  return PROGRAM_ERROR;
 
230
}
206
231
 
207
232
const std::string &type(drizzled::enum_field_types type)
208
233
{