Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Feb 28, 2025
1 parent dae543c commit d0e0efb
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions database/gdb/gdb_core_underlying.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,22 +496,6 @@ func (c *Core) RowsToResult(ctx context.Context, rows *sql.Rows) (Result, error)
return result, nil
}

func (c *Core) getLocalTypeForFieldWithCache(
ctx context.Context, fieldType string, fieldValue any,
) (localType LocalType, err error) {
v := c.localTypeMap.GetOrSetFuncLock(fieldType, func() any {
localType, err = c.db.CheckLocalTypeForField(ctx, fieldType, fieldValue)
if err != nil {
return nil
}
return localType
})
if err != nil {
return LocalTypeUndefined, err
}
return v.(LocalType), nil
}

// OrderRandomFunction returns the SQL function for random ordering.
func (c *Core) OrderRandomFunction() string {
return "RAND()"
Expand Down

0 comments on commit d0e0efb

Please sign in to comment.