fixes f.SetBit

This commit is contained in:
Yuce Tekol 2018-11-08 20:40:57 +03:00
parent 7913a419ae
commit 745ec43432
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -802,7 +802,7 @@ func (f *Field) Row(rowID uint64) (*Row, error) {
// SetBit sets a bit on a view within the field.
func (f *Field) SetBit(rowID, colID uint64, t *time.Time) (changed bool, err error) {
viewName := viewStandard
if f.options.Type == FieldTypeTime && !f.options.NoStandardView {
if !f.options.NoStandardView {
// Retrieve view. Exit if it doesn't exist.
view, err := f.createViewIfNotExists(viewName)
if err != nil {