Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions go/mysql/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ const (
const (
// ERVitessMaxRowsExceeded is when a user tries to select more rows than the max rows as enforced by vitess.
ERVitessMaxRowsExceeded = 10001

// ERVitessShardError is when a shard query fails in a partial scatter statement
ERVitessShardError = 10002
)

// Error codes for server-side errors.
Expand Down
5 changes: 5 additions & 0 deletions go/sqltypes/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func NewUint64(v uint64) Value {
return MakeTrusted(Uint64, strconv.AppendUint(nil, v, 10))
}

// NewUint32 builds an Uint32 Value.
func NewUint32(v uint32) Value {
return MakeTrusted(Uint32, strconv.AppendUint(nil, uint64(v), 10))
}

// NewFloat64 builds an Float64 Value.
func NewFloat64(v float64) Value {
return MakeTrusted(Float64, strconv.AppendFloat(nil, v, 'g', -1, 64))
Expand Down
598 changes: 324 additions & 274 deletions go/vt/proto/query/query.pb.go

Large diffs are not rendered by default.

362 changes: 186 additions & 176 deletions go/vt/proto/vtgate/vtgate.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,9 @@ var (
}, {
input: "show warnings",
output: "show warnings",
}, {
input: "select warnings from t",
output: "select `warnings` from t",
}, {
input: "show foobar",
output: "show foobar",
Expand Down
Loading