MCPcopy Create free account
hub / github.com/Shopify/ghostferry / NonBinaryCollationError

Function NonBinaryCollationError

table_schema_cache.go:260–262  ·  view source on GitHub ↗

NonBinaryCollationError exported to facilitate black box testing

(schema, table, paginationKey, collation string)

Source from the content-addressed store, hash-verified

258
259// NonBinaryCollationError exported to facilitate black box testing
260func NonBinaryCollationError(schema, table, paginationKey, collation string) error {
261 return fmt.Errorf("Pagination Key `%s` for %s has non-binary collation '%s'. Binary columns (BINARY, VARBINARY) or string columns with binary collation (e.g., utf8mb4_bin) are required to ensure consistent ordering between MySQL and Ghostferry", paginationKey, QuotedTableNameFromString(schema, table), collation)
262}
263
264func (t *TableSchema) paginationKeyColumn(cascadingPaginationColumnConfig *CascadingPaginationColumnConfig) (*schema.TableColumn, int, error) {
265 var err error

Callers 1

paginationKeyColumnMethod · 0.85

Calls 2

ErrorfMethod · 0.65

Tested by

no test coverage detected