~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to sql/field.h

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-08-27 21:12:36 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140827211236-se41hwfe4xy0hpef
* d/control: Removed Provides: libmysqlclient-dev (Closes: #759309)
* d/control: Removed Provides: libmysqld-dev with same motivation
* Re-introduced tha HPPA build patch as the upstream fix wasn't complete
* Fixed all kFreeBSD build and test suite issues
* Added Italian translation (Closes: #759813)

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
  return mysql_type_to_time_type(type) != MYSQL_TIMESTAMP_ERROR;
114
114
}
115
115
 
 
116
 
 
117
/**
 
118
  Tests if field type is temporal and has time part,
 
119
  i.e. represents TIME, DATETIME or TIMESTAMP types in SQL.
 
120
 
 
121
  @param type    Field type, as returned by field->type().
 
122
  @retval true   If field type is temporal type with time part.
 
123
  @retval false  If field type is not temporal type with time part.
 
124
*/
 
125
inline bool is_temporal_type_with_time(enum_field_types type)
 
126
{
 
127
  switch (type)
 
128
  {
 
129
  case MYSQL_TYPE_TIME:
 
130
  case MYSQL_TYPE_DATETIME:
 
131
  case MYSQL_TYPE_TIMESTAMP:
 
132
    return true;
 
133
  default:
 
134
    return false;
 
135
  }
 
136
}
 
137
 
 
138
 
116
139
/*
117
140
  Virtual_column_info is the class to contain additional
118
141
  characteristics that is specific for a virtual/computed