Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nfjBill committed Oct 20, 2022
1 parent 86e8e7b commit 52d4cfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dm.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"github.com/nfjBill/gorm-driver-dm/clauses"
"gorm.io/gorm/utils"
"log"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -279,7 +278,7 @@ func (d Dialector) DataTypeOf(field *schema.Field) string {
}

if sqlType == "" {
log.Fatalln(fmt.Sprintf("invalid sql type %s (%s) for dm", field.FieldType.Name(), field.FieldType.String()))
panic(fmt.Sprintf("invalid sql type %s (%s) for dm", field.FieldType.Name(), field.FieldType.String()))
}

notNull, _ := field.TagSettings["NOT NULL"]
Expand Down

0 comments on commit 52d4cfa

Please sign in to comment.