~capttofu/drizzle/federated_schema

« back to all changes in this revision

Viewing changes to drizzled/definition/table.cc

  • Committer: Lee Bieber
  • Date: 2010-12-08 03:25:22 UTC
  • mfrom: (1977.1.6 build)
  • Revision ID: kalebral@gmail.com-20101208032522-p28o64pzi0etpd5g
Merge Andrew - fix for drizzledump bugs
Merge Brian - Fixed a couple of assert() and added abort where program logic would corrupt the instance
Merge Monty - more sys_var work, pbms and pbxt and some vars in innodb

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
    field_type= DRIZZLE_TYPE_BLOB;
266
266
    break;
267
267
  default:
268
 
    field_type= DRIZZLE_TYPE_LONG; /* Set value to kill GCC warning */
269
 
    assert(1);
 
268
    assert(0);
 
269
    abort(); // Programming error
270
270
  }
271
271
 
272
272
  return field_type;
300
300
                                 default_value->length());
301
301
    break;
302
302
  case DRIZZLE_TYPE_NULL:
303
 
    assert(false);
 
303
    assert(0);
 
304
    abort();
304
305
  case DRIZZLE_TYPE_TIMESTAMP:
305
306
  case DRIZZLE_TYPE_DATETIME:
306
307
  case DRIZZLE_TYPE_DATE:
671
672
  else
672
673
  {
673
674
    assert(0); // We should throw here.
 
675
    abort();
674
676
  }
675
677
}
676
678
 
1132
1134
        unireg_type= Field::TIMESTAMP_DN_FIELD;
1133
1135
      }
1134
1136
      else
1135
 
        assert(1); // Invalid update value.
 
1137
      {
 
1138
        assert(0); // Invalid update value.
 
1139
        abort();
 
1140
      }
1136
1141
    }
1137
1142
    else if (pfield.has_options() &&
1138
1143
             pfield.options().has_update_expression() &&