fix(localdb): capture-layer review fixes — BLOB fail-closed, identifier escaping, master lock, PK-change tombstone, digest canon

This commit is contained in:
Joseph Doherty
2026-07-17 21:30:45 -04:00
parent f4063f811f
commit df2518611f
5 changed files with 251 additions and 70 deletions
@@ -58,6 +58,18 @@ public sealed class RegistrationTests : IDisposable
Assert.Contains("ghost", ex.Message);
}
[Fact]
public async Task Register_BlobColumn_Throws()
{
using var db = Create();
await db.ExecuteAsync("CREATE TABLE blobby (id INTEGER PRIMARY KEY, data BLOB)");
var ex = Assert.Throws<LocalDbRegistrationException>(() => db.RegisterReplicated("blobby"));
Assert.Contains("blobby", ex.Message);
Assert.Contains("data", ex.Message);
Assert.Contains("BLOB", ex.Message);
}
[Fact]
public async Task Register_IsIdempotent_RegeneratesTriggers()
{