fixed some rebasing problems

This commit is contained in:
pokeeffe-molecula 2023-04-04 18:19:11 -05:00
parent 791aa6096c
commit 9d294c4f39
2 changed files with 2 additions and 2 deletions

View file

@ -750,7 +750,7 @@ func TestBulkInsertStatement_String(t *testing.T) {
MapExpr: &parser.Ident{Name: "2"}},
{Name: &parser.Ident{Name: "decimal"},
Type: &parser.Type{Name: &parser.Ident{Name: "DECIMAL"},
Scale: &parser.IntegerLit{Value: "2"}},
Modifier: &parser.IntegerLit{Value: "2"}},
MapExpr: &parser.Ident{Name: "3"}},
{Name: &parser.Ident{Name: "timestamp"},
Type: &parser.Type{Name: &parser.Ident{Name: "TIMESTAMP"}},

View file

@ -517,7 +517,7 @@ func generateTableDDL(tbl *dax.Table, newName string) string {
buf.WriteString(", ")
}
fmt.Fprintf(&buf, "%s", col.Name)
dataType := fieldSQLDataType(pilosa.FieldToFieldInfo(col))
dataType := FieldSQLDataType(pilosa.FieldToFieldInfo(col))
fmt.Fprintf(&buf, " %s", dataType.TypeDescription())
switch dt := dataType.(type) {