-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
This is an older issue I forgot to report, but still happening with the latest versions of the framework. It's easiest to reproduce with Fluent, but the underlying issue is here.
Consider an entity that has a Bytes property inside, and its init(row:) initializer.
The linked file works, but if line 16 was written naively as one would expect to work:
content = try row.get("content")A cryptic error is thrown instead:
[Node Error: Unable to convert 'Node(wrapped: [91, 49, 48, 48, 44, 49, 49, 55, 44, 49, 48, 57, 44, 49, 48, 57, 44, 49, 50, 49, 44, 52, 56, 44, 52, 56, 44, 52, 57, 93], context: MySQL.MySQLContext)' to 'UInt8' for path ''] [Identifier: Node.NodeError.unableToConvert]
Which suggests that for some dark reason, the function tried to convert the bytes SD into a single byte.
Reactions are currently unavailable