1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
package transaction
import (
"fmt"
"github.com/ovn-kubernetes/libovsdb/cache"
)
func newIndexExistsDetails(err cache.ErrIndexExists) string {
return fmt.Sprintf("operation would cause rows in the \"%s\" table to have identical values (%v) for index on column \"%s\". First row, with UUID %s, was inserted by this transaction. Second row, with UUID %s, existed in the database before this operation and was not modified",
err.Table,
err.Value,
err.Index,
err.New,
err.Existing,
)
}
|