graph/db: fix ChanUpdate message/channel flag bug
Here we start using the newly added message_flags and channel_flags columns of the channel_policies table. The test added previoulsy to demonstrate the bug is now updated to show that the bug has been fixed.
This commit is contained in:
3 files changed
+47
-47
No files matched your search
@@ -68,3 +68,10 @@ func SQLTime(t time.Time) sql.NullTime {
|
||||
Valid: true,
|
||||
}
|
||||
}
|
||||
|
||||
// ExtractSqlInt16 turns a NullInt16 into a numerical type. This can be useful
|
||||
// when reading directly from the database, as this function handles extracting
|
||||
// the inner value from the "option"-like struct.
|
||||
func ExtractSqlInt16[T constraints.Integer](num sql.NullInt16) T {
|
||||
return T(num.Int16)
|
||||
}
|
||||
Reference in new issue
Block a user