diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-09-16 14:16:44 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-09-16 14:16:44 +0200 |
| commit | 2dbf73b98962bcab1de06f8699e621e4e75a96fb (patch) | |
| tree | fe5368823e2062d3a98c54428727a31403ab0faf /Emby.Server.Implementations/Data/SqliteExtensions.cs | |
| parent | 6bf0acb854683377bebad3ca27de17706519c420 (diff) | |
Minor improvements
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteExtensions.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteExtensions.cs b/Emby.Server.Implementations/Data/SqliteExtensions.cs index 716e5071d..70a6df977 100644 --- a/Emby.Server.Implementations/Data/SqliteExtensions.cs +++ b/Emby.Server.Implementations/Data/SqliteExtensions.cs @@ -234,7 +234,9 @@ namespace Emby.Server.Implementations.Data { if (statement.BindParameters.TryGetValue(name, out IBindParameter bindParam)) { - bindParam.Bind(value.ToByteArray()); + Span<byte> byteValue = stackalloc byte[16]; + value.TryWriteBytes(byteValue); + bindParam.Bind(byteValue); } else { |
