MCPcopy Create free account
hub / github.com/apecloud/myduckserver / SetAutoIncrementValue

Method SetAutoIncrementValue

catalog/table.go:938–940  ·  view source on GitHub ↗
(ctx *sql.Context, value uint64)

Source from the content-addressed store, hash-verified

936 // So we create a new sequence with the new start value and change the auto_increment column to use the new sequence.
937
938 // Find the column with the auto_increment property
939 var autoIncrementColumn *sql.Column
940 for _, column := range t.schema.Schema {
941 if column.AutoIncrement {
942 autoIncrementColumn = column
943 break

Callers

nothing calls this directly

Calls 1

setAutoIncrementValueMethod · 0.80

Tested by

no test coverage detected