~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/table.proto

Create default_values record from proto instead of reading from FRM. assert if different to FRM.

Restore the "blob can't have default value" error message.

Fix default values for: blob, vachar, enum and varbinary.
Default value for a BLOB can be "" thanks to TINYTEXT or something.
proto now has default_bin_value as well as default_value. the default_bin_value used for varbinary and in future, blobs.

Load enum values out of proto instead of FRM and fill in the crazy interval structures.

Jay will fix up the create.test change (incorrect datetime for timestamp "0").

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
      optional string default_value = 1;
101
101
      optional string update_value = 2;
102
102
      optional bool default_null = 3 [default = false];
 
103
      optional bytes default_bin_value = 4;
 
104
 
103
105
      optional int32 length = 100; /* TODO: should go away */
104
106
    }
105
107