aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteExtensions.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-09-16 14:16:44 +0200
committerBond_009 <bond.009@outlook.com>2020-09-16 14:16:44 +0200
commit2dbf73b98962bcab1de06f8699e621e4e75a96fb (patch)
treefe5368823e2062d3a98c54428727a31403ab0faf /Emby.Server.Implementations/Data/SqliteExtensions.cs
parent6bf0acb854683377bebad3ca27de17706519c420 (diff)
Minor improvements
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteExtensions.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteExtensions.cs4
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
{