diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2015-02-16 00:59:20 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2015-02-16 00:59:20 +0300 |
commit | 38661a3d8c70cbe764bf8216f47e5b9e486faa0c (patch) | |
tree | 0545bc8645ecc82bed93af0501421a5c7e0b1789 | |
parent | 3ab1632f43f55a695651e3f3f26eb276f4eb29e1 (diff) |
Correct reading of file with size == DBNull
This fixes #1296.
-rw-r--r-- | Duplicati/Library/Main/Database/LocalDeleteDatabase.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Duplicati/Library/Main/Database/LocalDeleteDatabase.cs b/Duplicati/Library/Main/Database/LocalDeleteDatabase.cs index fa7cc5ed2..5ee41586a 100644 --- a/Duplicati/Library/Main/Database/LocalDeleteDatabase.cs +++ b/Duplicati/Library/Main/Database/LocalDeleteDatabase.cs @@ -97,7 +97,7 @@ namespace Duplicati.Library.Main.Database using (var rd = cmd.ExecuteReader(@"SELECT ""Name"", ""Size"" FROM ""RemoteVolume"" WHERE ""Type"" = ? AND ""State"" = ? ", RemoteVolumeType.Files.ToString(), RemoteVolumeState.Deleting.ToString()))
while (rd.Read())
- yield return new KeyValuePair<string, long>(rd.GetString(0), rd.GetInt64(1));
+ yield return new KeyValuePair<string, long>(rd.GetString(0), rd.ConvertValueToInt64(1));
}
}
|