~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2011-01-08 10:35:13 UTC
  • mfrom: (2057.2.9 timestamp)
  • Revision ID: brian@tangent.org-20110108103513-3wuo8tsyajjcxjrg
Merge in fractional seconds to timestamp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
   */
287
287
  virtual bool eq_def(Field *field);
288
288
 
 
289
  virtual bool is_timestamp() const
 
290
  {
 
291
    return false;
 
292
  }
 
293
 
289
294
  /**
290
295
   * Returns size (in bytes) used to store field data in memory
291
296
   * (i.e. it returns the maximum size of the field in a row of the table,
750
755
protected:
751
756
 
752
757
  void pack_num(uint64_t arg, unsigned char *destination= NULL);
 
758
  void pack_num(uint32_t arg, unsigned char *destination= NULL);
753
759
  uint64_t unpack_num(uint64_t &destination, const unsigned char *arg= NULL) const;
 
760
  uint32_t unpack_num(uint32_t &destination, const unsigned char *arg= NULL) const;
754
761
};
755
762
 
756
763
std::ostream& operator<<(std::ostream& output, const Field &field);