replace format_7_18 in more places

This commit is contained in:
Andy Arthur
2021-03-31 14:02:42 -07:00
parent a1fa1e3d39
commit 4c87f120f0
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ type MemFactory struct {
func (fact MemFactory) CreateDB(ctx context.Context, nbf *types.NomsBinFormat, urlObj *url.URL, params map[string]string) (datas.Database, error) {
var db datas.Database
storage := &chunks.MemoryStorage{}
db = datas.NewDatabase(storage.NewView())
db = datas.NewDatabase(storage.NewViewWithDefaultFormat())
return db, nil
}

View File

@@ -78,7 +78,7 @@ func init() {
KindToType[IntKind] = Int(0)
KindToType[UintKind] = Uint(0)
KindToType[NullKind] = NullValue
KindToType[TupleKind] = EmptyTuple(Format_7_18)
KindToType[TupleKind] = EmptyTuple(Format_Default)
KindToType[InlineBlobKind] = InlineBlob{}
KindToType[TimestampKind] = Timestamp{}
KindToType[DecimalKind] = Decimal{}

View File

@@ -72,12 +72,12 @@ func (t *Type) Equals(other Value) (res bool) {
}
if otherType, ok := other.(*Type); ok {
h, err := t.Hash(Format_7_18)
h, err := t.Hash(Format_Default)
// TODO - fix panics
d.PanicIfError(err)
oh, err := other.Hash(Format_7_18)
oh, err := other.Hash(Format_Default)
// TODO - fix panics
d.PanicIfError(err)