fix(connectors): read a connector's capabilities before it has ever loaded (#2087)

This commit is contained in:
sam committed 2026-11-21 17:32:20 +11:00
1 parent 01fd0fbf97
commit 31b2827048
1 file changed
+4 -2
+4 -2
View File
@@ -37,8 +37,10 @@ type Accepted struct {
// as a JSON array.
Tools jsontext.Value `db:"tools"`
// Capabilities is what a connector declared when it last loaded, as a JSON
// object. It is nil until then, and acceptance never changes it.
Capabilities jsontext.Value `db:"capabilities"`
// object. It is nil until then, and acceptance never changes it. It is a
// []byte because database/sql scans NULL into []byte but not into a named
// byte slice such as jsontext.Value.
Capabilities []byte `db:"capabilities"`
}
// Contracts an accepted package can serve.