~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.h

  • Committer: Jay Pipes
  • Date: 2010-02-25 20:20:08 UTC
  • mto: (1309.2.14 build)
  • mto: This revision was merged to the branch mainline in revision 1319.
  • Revision ID: jpipes@serialcoder-20100225202008-i2debe8qphdw2tms
Fixes transaction log/replication for multi-column primary keys.  Changes CREATE SCHEMA to not use statement-base RAW_SQL and instead use a derived message::Statement subclass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
class DeleteData;
54
54
class DeleteRecord;
55
55
class TruncateTableStatement;
 
56
class CreateSchemaStatement;
56
57
class SetVariableStatement;
57
58
 
58
59
/** A Variation of SQL to be output during transformation */
283
284
                                     enum TransformSqlVariant sql_variant= DRIZZLE);
284
285
 
285
286
/**
 
287
 * This function looks at a supplied CreateSchemaStatement
 
288
 * and constructs a correctly-formatted SQL
 
289
 * statement to the supplied destination string.
 
290
 *
 
291
 * @param CreateSchemaStatement message to transform
 
292
 * @param Destination string to append SQL to
 
293
 * @param Variation of SQL to generate
 
294
 *
 
295
 * @retval
 
296
 *  NONE if successful transformation
 
297
 * @retval
 
298
 *  Error code (see enum TransformSqlError definition) if failure
 
299
 */
 
300
enum TransformSqlError
 
301
transformCreateSchemaStatementToSql(const CreateSchemaStatement &statement,
 
302
                                    std::string *destination,
 
303
                                    enum TransformSqlVariant sql_variant= DRIZZLE);
 
304
 
 
305
/**
286
306
 * This function looks at a supplied SetVariableStatement
287
307
 * and constructs a correctly-formatted SQL
288
308
 * statement to the supplied destination string.