diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-09-26 11:37:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-26 11:37:00 +0100 |
| commit | abfddba5684b59acd0fa74c18f3037b5c7cda4be (patch) | |
| tree | c9e9f8b50adf463a87b6e8801dc83d705906819d /Emby.Server.Implementations/Data/SqliteExtensions.cs | |
| parent | 4c6b60d69db57abf0c669a3ec918443d017fd0e5 (diff) | |
| parent | 800c03961281d4f2ee6d3d7c9d9c0db6f45f506a (diff) | |
Merge pull request #74 from jellyfin/master
Updating from upstream
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 { |
