Bug fix
* style.css: yastyle * NpgsqlBlogProvider.cs: Fixes last commit in case of DBNull reading the photo
This commit is contained in:
parent
92e42572d1
commit
ec99edcc4e
4 changed files with 17 additions and 6 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* NpgsqlBlogProvider.cs: Fixes last commit in case of DBNull
|
||||
reading the photo
|
||||
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* NpgsqlBlogProvider.cs: implements a blog post photo storage
|
||||
|
|
|
|||
|
|
@ -303,7 +303,11 @@ namespace Npgsql.Web.Blog
|
|||
be.Posted = rdr.GetDateTime (rdr.GetOrdinal ("posted"));
|
||||
be.Visible = rdr.GetBoolean (rdr.GetOrdinal ("visible"));
|
||||
be.Id = rdr.GetInt64 (rdr.GetOrdinal ("_id"));
|
||||
be.Photo = rdr.GetString (rdr.GetOrdinal ("photo"));
|
||||
{
|
||||
int oph = rdr.GetOrdinal ("photo");
|
||||
if (!rdr.IsDBNull (oph))
|
||||
be.Photo = rdr.GetString (oph);
|
||||
}
|
||||
bec.Add (be);
|
||||
}
|
||||
rdr.Close ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue