~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_schema.h

  • Committer: Vijay Samuel
  • Date: 2010-09-10 21:03:37 UTC
  • mto: (1757.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1758.
  • Revision ID: vijay@vijay-20100910210337-rf7c2ymawtqj6tkv
Merge added utf 8 tamil test case suite and test case for creating a database in tamil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/statement.h>
25
25
#include <drizzled/message/schema.pb.h>
26
 
#include <uuid/uuid.h>
27
26
 
28
27
namespace drizzled
29
28
{
42
41
  {
43
42
    schema_message.set_creation_timestamp(time(NULL));
44
43
    schema_message.set_update_timestamp(time(NULL));
45
 
 
46
 
    /* 36 characters for uuid string +1 for NULL */
47
 
    uuid_t uu;
48
 
    char uuid_string[37];
49
 
    uuid_generate_random(uu);
50
 
    uuid_unparse(uu, uuid_string);
51
 
    schema_message.set_uuid(uuid_string, 36);
52
 
 
53
 
    schema_message.set_version(1);
54
44
  }
55
45
 
56
46
  bool execute();