~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.cc

in the table proto, having default_null set to false explicitly (instead of just having it as a default) had a different behaviour than if it was not set and defaulting to NULL. This meant that you'd get empty defaults instead of no default. This only showed up in table_function tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1350
1350
    Item *default_value= NULL;
1351
1351
 
1352
1352
    if (pfield.options().has_default_value() ||
1353
 
        pfield.options().has_default_null()  ||
 
1353
        pfield.options().default_null()  ||
1354
1354
        pfield.options().has_default_bin_value())
1355
1355
    {
1356
1356
      default_value= default_value_item(field_type,