mirror of https://github.com/jellyfin/jellyfin
Updated TryGetGuid for migration
This commit is contained in:
parent
3d87d0faa2
commit
07ed9a3ea4
|
|
@ -127,8 +127,16 @@ namespace Emby.Server.Implementations.Data
|
|||
return false;
|
||||
}
|
||||
|
||||
result = reader.GetGuid(index);
|
||||
return true;
|
||||
try
|
||||
{
|
||||
result = reader.GetGuid(index);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
result = Guid.Empty;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool TryGetString(this SqliteDataReader reader, int index, out string result)
|
||||
|
|
|
|||
Loading…
Reference in New Issue