~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.h

Remove PLUGIN and MODULES.

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 */
86
87
enum TransformSqlError
87
88
transformStatementToSql(const Statement &source,
88
89
                        std::vector<std::string> &sql_strings,
89
 
                        enum TransformSqlVariant sql_variant= DRIZZLE);
 
90
                        enum TransformSqlVariant sql_variant= DRIZZLE,
 
91
                        bool already_in_transaction= false);
90
92
 
91
93
/**
92
94
 * This function looks at a supplied InsertHeader
260
262
                           enum TransformSqlVariant sql_variant= DRIZZLE);
261
263
 
262
264
/**
 
265
 * This function looks at a supplied TruncateTableStatement
 
266
 * and constructs a correctly-formatted SQL
 
267
 * statement to the supplied destination string.
 
268
 *
 
269
 * @param TruncateTableStatement message to transform
 
270
 * @param Destination string to append SQL to
 
271
 * @param Variation of SQL to generate
 
272
 *
 
273
 * @retval
 
274
 *  NONE if successful transformation
 
275
 * @retval
 
276
 *  Error code (see enum TransformSqlError definition) if failure
 
277
 */
 
278
enum TransformSqlError
 
279
transformTruncateTableStatementToSql(const TruncateTableStatement &statement,
 
280
                                     std::string *destination,
 
281
                                     enum TransformSqlVariant sql_variant= DRIZZLE);
 
282
 
 
283
/**
263
284
 * This function looks at a supplied SetVariableStatement
264
285
 * and constructs a correctly-formatted SQL
265
286
 * statement to the supplied destination string.