Skip to content

mtca/publisher: make MirrorID nullable - #8968

Draft
jsha wants to merge 1 commit into
mainfrom
nullable-mirrorid
Draft

mtca/publisher: make MirrorID nullable#8968
jsha wants to merge 1 commit into
mainfrom
nullable-mirrorid

Conversation

@jsha

@jsha jsha commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This field is null when a checkpoint is first created. Represent it as a *string. This fixes a unittest error I was seeing locally:

--- FAIL: TestPublish (0.01s)
    mtpublisher_test.go:190: p.Publish(): selecting the latest checkpoint: failed to select one *mtpublisher.checkpointEntry (unknown table): sql: Scan error on column index 3, name "mirrorID": converting NULL to string is unsupported

This field is null when a checkpoint is first created. Represent it as a
`*string`. This fixes a unittest error I was seeing locally:

--- FAIL: TestPublish (0.01s)
    mtpublisher_test.go:190: p.Publish(): selecting the latest checkpoint: failed to select one *mtpublisher.checkpointEntry (unknown table): sql: Scan error on column index 3, name "mirrorID": converting NULL to string is unsupported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant