~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.h

  • Committer: Brian Aker
  • Date: 2011-01-17 06:29:39 UTC
  • mto: (2097.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2098.
  • Revision ID: brian@tangent.org-20110117062939-d4ldbka3oycdzv78
Stype cleanup, also have session now return epoch_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
class TruncateTableStatement;
60
60
class CreateSchemaStatement;
61
61
class DropSchemaStatement;
 
62
class AlterSchemaStatement;
62
63
class SetVariableStatement;
63
64
 
64
65
/** A Variation of SQL to be output during transformation */
75
76
{
76
77
  NONE= 0,
77
78
  MISSING_HEADER= 1, /* A data segment without a header segment was found */
78
 
  MISSING_DATA= 2 /* A header segment without a data segment was found */
 
79
  MISSING_DATA= 2,   /* A header segment without a data segment was found */
 
80
  UUID_MISMATCH= 3
79
81
};
80
82
 
81
83
/**
346
348
                                  enum TransformSqlVariant sql_variant= DRIZZLE);
347
349
 
348
350
/**
 
351
 * This function looks at a supplied AlterSchemaStatement
 
352
 * and constructs a correctly-formatted SQL
 
353
 * statement to the supplied destination string.
 
354
 *
 
355
 * @param AlterSchemaStatement message to transform
 
356
 * @param Destination string to append SQL to
 
357
 * @param Variation of SQL to generate
 
358
 *
 
359
 * @retval
 
360
 *  NONE if successful transformation
 
361
 * @retval
 
362
 *  Error code (see enum TransformSqlError definition) if failure
 
363
 */
 
364
enum TransformSqlError
 
365
transformAlterSchemaStatementToSql(const AlterSchemaStatement &statement,
 
366
                                   std::string &destination,
 
367
                                   enum TransformSqlVariant sql_variant= DRIZZLE);
 
368
 
 
369
/**
349
370
 * This function looks at a supplied SetVariableStatement
350
371
 * and constructs a correctly-formatted SQL
351
372
 * statement to the supplied destination string.