Skip to content

Commit f244897

Browse files
erjiaqingtiancaiamao
authored andcommitted
mysql: add ErrInvalidJSONPathArrayCell (#240)
1 parent fef2246 commit f244897

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mysql/errcode.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ const (
896896
ErrInvalidJSONPathWildcard = 3149
897897
ErrInvalidJSONContainsPathType = 3150
898898
ErrJSONUsedAsKey = 3152
899+
ErrInvalidJSONPathArrayCell = 3165
899900
ErrBadUser = 3162
900901
ErrRoleNotGranted = 3530
901902
ErrWindowNoSuchWindow = 3579

mysql/errname.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ var MySQLErrName = map[uint16]string{
892892
ErrInvalidJSONPathWildcard: "In this situation, path expressions may not contain the * and ** tokens.",
893893
ErrInvalidJSONContainsPathType: "The second argument can only be either 'one' or 'all'.",
894894
ErrJSONUsedAsKey: "JSON column '%-.192s' cannot be used in key specification.",
895+
ErrInvalidJSONPathArrayCell: "A path expression is not a path to a cell in an array.",
895896
ErrWindowNoSuchWindow: "Window name '%s' is not defined.",
896897
ErrWindowCircularityInWindowGraph: "There is a circularity in the window dependency graph.",
897898
ErrWindowNoChildPartitioning: "A window which depends on another cannot define partitioning.",

0 commit comments

Comments
 (0)