~drizzle-trunk/drizzle/development

Viewing all changes in revision 1302.3.1.

  • Committer: Stewart Smith
  • Date: 2010-02-19 06:36:37 UTC
  • mto: (1273.19.3 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1309.
  • Revision ID: stewart@flamingspork.com-20100219063637-ios0morjfz5mxejt
correctly set FieldOptions default_null in table proto

This should correct the following problem:

drizzle> create table e ( b int DEFAULT NULL);
Query OK, 0 rows affected (0.01 sec)

drizzle> show fields from e;
+-------+---------+------+---------+-----------------+
| Field | Type    | Null | Default | Default is NULL |
+-------+---------+------+---------+-----------------+
| b     | INTEGER | TRUE |         | FALSE           | 
+-------+---------+------+---------+-----------------+
1 row in set (0 sec)

drizzle> show create table e;
+-------+-----------------------------------------------------------+
| Table | Create Table                                              |
+-------+-----------------------------------------------------------+
| e     | CREATE TABLE `e` (
  `b` int DEFAULT NULL
) ENGINE=InnoDB | 
+-------+-----------------------------------------------------------+
1 row in set (0 sec)


(the default_null in the table proto wasn't set).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: