~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.h

MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
class DeleteHeader;
51
51
class DeleteData;
52
52
class DeleteRecord;
 
53
class TruncateTableStatement;
53
54
class SetVariableStatement;
54
55
 
55
56
/** A Variation of SQL to be output during transformation */
260
261
                           enum TransformSqlVariant sql_variant= DRIZZLE);
261
262
 
262
263
/**
 
264
 * This function looks at a supplied TruncateTableStatement
 
265
 * and constructs a correctly-formatted SQL
 
266
 * statement to the supplied destination string.
 
267
 *
 
268
 * @param TruncateTableStatement message to transform
 
269
 * @param Destination string to append SQL to
 
270
 * @param Variation of SQL to generate
 
271
 *
 
272
 * @retval
 
273
 *  NONE if successful transformation
 
274
 * @retval
 
275
 *  Error code (see enum TransformSqlError definition) if failure
 
276
 */
 
277
enum TransformSqlError
 
278
transformTruncateTableStatementToSql(const TruncateTableStatement &statement,
 
279
                                     std::string *destination,
 
280
                                     enum TransformSqlVariant sql_variant= DRIZZLE);
 
281
 
 
282
/**
263
283
 * This function looks at a supplied SetVariableStatement
264
284
 * and constructs a correctly-formatted SQL
265
285
 * statement to the supplied destination string.