a tag panel

This commit is contained in:
Paul Schneider 2015-10-17 21:35:07 +02:00
commit 352a950755
14 changed files with 53 additions and 28 deletions

View file

@ -1,3 +1,8 @@
2015-10-17 Paul Schneider <paul@pschneider.fr>
* NpgsqlTagInfo.cs:
* NpgsqlBlogProvider.cs:
2015-10-17 Paul Schneider <paul@pschneider.fr>
* NpgsqlTagInfo.cs:

View file

@ -738,7 +738,7 @@ namespace Npgsql.Web.Blog
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
cmd.CommandText = "select * " +
"from blog where applicationname = :appname and visible = true " +
" order by posted desc limit :len";
" order by modified desc limit :len";
cmd.Parameters.AddWithValue ("appname", applicationName);
cmd.Parameters.AddWithValue ("len", defaultPageSize * 10);

View file

@ -56,7 +56,7 @@ namespace Npgsql.Web.Blog
" tag._id = tagged.tagid AND \n" +
" public.tag.name = :name";
cmd.Parameters.AddWithValue ("name", tagname);
cnx.Open ();
using (NpgsqlDataReader rdr = cmd.ExecuteReader ()) {
while (rdr.Read ()) {
bool truncated;