File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ require (
60
60
github.com/creasty/defaults v1.6.0
61
61
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12
62
62
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
63
- github.com/dolthub/go-mysql-server v0.19.1-0.20250418000153-af677a1ae566
63
+ github.com/dolthub/go-mysql-server v0.19.1-0.20250418184029-b02d6d577682
64
64
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63
65
65
github.com/esote/minmaxheap v1.0.0
66
66
github.com/goccy/go-json v0.10.2
Original file line number Diff line number Diff line change @@ -221,8 +221,8 @@ github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
221
221
github.com/dolthub/fslock v0.0.3 /go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0 =
222
222
github.com/dolthub/go-icu-regex v0.0.0-20250327004329-6799764f2dad h1:66ZPawHszNu37VPQckdhX1BPPVzREsGgNxQeefnlm3g =
223
223
github.com/dolthub/go-icu-regex v0.0.0-20250327004329-6799764f2dad /go.mod h1:ylU4XjUpsMcvl/BKeRRMXSH7e7WBrPXdSLvnRJYrxEA =
224
- github.com/dolthub/go-mysql-server v0.19.1-0.20250418000153-af677a1ae566 h1:/OQR7jwfvt2z3J85bYA9i7ed+WGrRZNJqz42E64kyzE =
225
- github.com/dolthub/go-mysql-server v0.19.1-0.20250418000153-af677a1ae566 /go.mod h1:AK7fdF0U5kK492FJ1Q260hgs2pHYS8psEXbtcH5ep5A =
224
+ github.com/dolthub/go-mysql-server v0.19.1-0.20250418184029-b02d6d577682 h1:c/DukYN5vohc/VIi+0nK8S6XNuTpN04OZTmG8V1OTDY =
225
+ github.com/dolthub/go-mysql-server v0.19.1-0.20250418184029-b02d6d577682 /go.mod h1:AK7fdF0U5kK492FJ1Q260hgs2pHYS8psEXbtcH5ep5A =
226
226
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI =
227
227
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 /go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q =
228
228
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE =
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ const (
83
83
ForeignKeyReferentialAction_NoAction
84
84
ForeignKeyReferentialAction_Restrict
85
85
ForeignKeyReferentialAction_SetNull
86
+ ForeignKeyReferentialAction_SetDefault
86
87
)
87
88
88
89
// ForeignKey is the complete, internal representation of a Foreign Key.
@@ -771,6 +772,8 @@ func (refOp ForeignKeyReferentialAction) String() string {
771
772
return "RESTRICT"
772
773
case ForeignKeyReferentialAction_SetNull :
773
774
return "SET NULL"
775
+ case ForeignKeyReferentialAction_SetDefault :
776
+ return "SET DEFAULT"
774
777
default :
775
778
return "INVALID"
776
779
}
@@ -786,6 +789,8 @@ func (refOp ForeignKeyReferentialAction) ReducedString() string {
786
789
return "CASCADE"
787
790
case ForeignKeyReferentialAction_SetNull :
788
791
return "SET NULL"
792
+ case ForeignKeyReferentialAction_SetDefault :
793
+ return "SET DEFAULT"
789
794
default :
790
795
return "INVALID"
791
796
}
Original file line number Diff line number Diff line change @@ -2998,6 +2998,8 @@ func toReferentialAction(opt doltdb.ForeignKeyReferentialAction) sql.ForeignKeyR
2998
2998
return sql .ForeignKeyReferentialAction_Restrict
2999
2999
case doltdb .ForeignKeyReferentialAction_SetNull :
3000
3000
return sql .ForeignKeyReferentialAction_SetNull
3001
+ case doltdb .ForeignKeyReferentialAction_SetDefault :
3002
+ return sql .ForeignKeyReferentialAction_SetDefault
3001
3003
default :
3002
3004
panic (fmt .Sprintf ("Unhandled foreign key referential action %v" , opt ))
3003
3005
}
@@ -3016,7 +3018,7 @@ func ParseFkReferentialAction(refOp sql.ForeignKeyReferentialAction) (doltdb.For
3016
3018
case sql .ForeignKeyReferentialAction_SetNull :
3017
3019
return doltdb .ForeignKeyReferentialAction_SetNull , nil
3018
3020
case sql .ForeignKeyReferentialAction_SetDefault :
3019
- return doltdb .ForeignKeyReferentialAction_DefaultAction , sql . ErrForeignKeySetDefault . New ()
3021
+ return doltdb .ForeignKeyReferentialAction_SetDefault , nil
3020
3022
default :
3021
3023
return doltdb .ForeignKeyReferentialAction_DefaultAction , fmt .Errorf ("unknown foreign key referential action: %v" , refOp )
3022
3024
}
You can’t perform that action at this time.
0 commit comments