Skip to content

Commit 20cc7ec

Browse files
committed
replace IsValidFloat function
1 parent fab671a commit 20cc7ec

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

core/init.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import (
2121
"github.com/dolthub/doltgresql/core/conflicts"
2222
"github.com/dolthub/doltgresql/core/id"
2323
"github.com/dolthub/doltgresql/server/plpgsql"
24+
25+
gmstypes "github.com/dolthub/go-mysql-server/sql/types"
2426
)
2527

2628
// Init initializes this package.
@@ -29,6 +31,7 @@ func Init() {
2931
doltdb.NewRootValue = newRootValue
3032
types.DoltgresRootValueHumanReadableStringAtIndentationLevel = rootValueHumanReadableStringAtIndentationLevel
3133
types.DoltgresRootValueWalkAddrs = rootValueWalkAddrs
34+
gmstypes.IsValidFloat = isValidFloat
3235
conflicts.ClearContextValues = ClearContextValues
3336
plpgsql.GetTypesCollectionFromContext = GetTypesCollectionFromContext
3437
id.RegisterListener(sequenceIDListener{}, id.Section_Table)

core/override_functions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ func newRootValue(ctx context.Context, vrw types.ValueReadWriter, ns tree.NodeSt
9797
return &RootValue{vrw, ns, st, nil, hash.Hash{}}, nil
9898
}
9999

100+
func isValidFloat(f float64) bool {
101+
return true
102+
}
103+
100104
// rootValueHumanReadableStringAtIndentationLevel is Doltgres' implementation of
101105
// types.DoltgresRootValueHumanReadableStringAtIndentationLevel.
102106
func rootValueHumanReadableStringAtIndentationLevel(sm types.SerialMessage, level int) string {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/dolthub/dolt/go v0.40.5-0.20250923175150-9d9f7d8c96ce
1010
github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca
1111
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
12-
github.com/dolthub/go-mysql-server v0.20.1-0.20251016170900-472b386b984a
12+
github.com/dolthub/go-mysql-server v0.20.1-0.20251016182659-c8a68c20b90b
1313
github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216
1414
github.com/dolthub/vitess v0.0.0-20250930230441-70c2c6a98e33
1515
github.com/fatih/color v1.13.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
258258
github.com/dolthub/fslock v0.0.3/go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0=
259259
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790 h1:zxMsH7RLiG+dlZ/y0LgJHTV26XoiSJcuWq+em6t6VVc=
260260
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790/go.mod h1:F3cnm+vMRK1HaU6+rNqQrOCyR03HHhR1GWG2gnPOqaE=
261-
github.com/dolthub/go-mysql-server v0.20.1-0.20251016170900-472b386b984a h1:vOwYR9tqi/1e2lB0ZiITmRn+LCpHx8TsOm2JkkOJMIk=
262-
github.com/dolthub/go-mysql-server v0.20.1-0.20251016170900-472b386b984a/go.mod h1:EeYR0apo+8j2Dyxmn2ghkPlirO2S5mT1xHBrA+Efys8=
261+
github.com/dolthub/go-mysql-server v0.20.1-0.20251016182659-c8a68c20b90b h1:vjoX7RibAq5Q+ucW8sBxYHMZ/bU5f8DzLai10R/s4xo=
262+
github.com/dolthub/go-mysql-server v0.20.1-0.20251016182659-c8a68c20b90b/go.mod h1:EeYR0apo+8j2Dyxmn2ghkPlirO2S5mT1xHBrA+Efys8=
263263
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
264264
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
265265
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE=

0 commit comments

Comments
 (0)