~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/temporal_generator.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 07:46:49 UTC
  • mto: (2015.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2018.
  • Revision ID: brian@tangent.org-20101218074649-0zz1lf2tbhopfugm
Adding in time type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
                                                                  int32_t nsecond_part_index)
158
158
{
159
159
  drizzled::TemporalFormat *temporal_format= new drizzled::TemporalFormat(regexp);
160
 
  
 
160
 
161
161
  temporal_format->set_year_part_index(year_part_index);
162
162
  temporal_format->set_month_part_index(month_part_index);
163
163
  temporal_format->set_day_part_index(day_part_index);
171
171
}
172
172
 
173
173
drizzled::TemporalInterval *TemporalGenerator::TemporalIntervalGen::make_temporal_interval(
174
 
                                                              uint32_t  year,
175
 
                                                              uint32_t  month,
176
 
                                                              uint32_t  day,
177
 
                                                              uint32_t  hour,
178
 
                                                              uint64_t  minute,
179
 
                                                              uint64_t  second,
180
 
                                                              uint64_t  second_part,
181
 
                                                              bool neg)
 
174
                                                                                           uint32_t  year,
 
175
                                                                                           uint32_t  month,
 
176
                                                                                           uint32_t  day,
 
177
                                                                                           uint32_t  hour,
 
178
                                                                                           uint64_t  minute,
 
179
                                                                                           uint64_t  second,
 
180
                                                                                           uint64_t  second_part,
 
181
                                                                                           bool neg)
182
182
{
183
183
  drizzled::TemporalInterval *interval= new drizzled::TemporalInterval();
184
184