diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-23 10:30:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 10:30:13 -0400 |
| commit | 5aa743a6a2946fcee9ee57015c8cfc0152b2d914 (patch) | |
| tree | 2405b7b3c003c09e76b3f75ace11e911549bf07c /Emby.Server.Implementations/Data/SqliteExtensions.cs | |
| parent | 25bfef58fc8eadfcca2219721693864f8969b14a (diff) | |
| parent | 0007756a5ee0b0da3ac238ccc76f4be198ee4eed (diff) | |
Merge pull request #4163 from Bond-009/minor4
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 { |
