Skip to content

Commit e36d9fa

Browse files
committed
Incorporate PR feedback.
1 parent f8da474 commit e36d9fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/tables.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ type TruncateableTable interface {
330330
// AUTO_INCREMENT sequence. These methods should only be used for tables with and AUTO_INCREMENT column in their schema.
331331
type AutoIncrementTable interface {
332332
Table
333-
// PeekNextAutoIncrementValue returns the next AUTO_INCREMENT value without incrementing the current
334-
// auto_increment counter.
335-
PeekNextAutoIncrementValue(ctx *Context) (uint64, error)
333+
AutoIncrementGetter
336334
// GetNextAutoIncrementValue gets the next AUTO_INCREMENT value. In the case that a table with an autoincrement
337335
// column is passed in a row with the autoinc column failed, the next auto increment value must
338336
// update its internal state accordingly and use the insert val at runtime.
@@ -346,6 +344,8 @@ type AutoIncrementTable interface {
346344
// This can include tables that don't implement AutoIncrementTable if the table is a read-only snapshot
347345
// of an auto-incremented table.
348346
type AutoIncrementGetter interface {
347+
// PeekNextAutoIncrementValue returns the next AUTO_INCREMENT value without incrementing the current
348+
// auto_increment counter.
349349
PeekNextAutoIncrementValue(ctx *Context) (uint64, error)
350350
}
351351

0 commit comments

Comments
 (0)