there is no privacy to attribute to any circle,

they all are private, that's all.
This commit is contained in:
Paul Schneider 2015-09-10 01:42:52 +02:00
commit edf89cf739
6 changed files with 13 additions and 11 deletions

View file

@ -1,3 +1,7 @@
2015-09-10 Paul Schneider <paul@pschneider.fr>
* NpgsqlCircleProvider.cs:
2015-09-10 Paul Schneider <paul@pschneider.fr>
* NpgsqlCircleProvider.cs: * refactoring

View file

@ -47,11 +47,9 @@ namespace WorkFlowProvider
cnx.Open ();
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
cmd.CommandText = "update circle " +
"set title = :title, " +
"isprivate = :pv " +
"set title = :title " +
"where _id = :cid ";
cmd.Parameters.AddWithValue ("title", c.Title);
cmd.Parameters.AddWithValue ("pv", c.IsPrivate);
cmd.Parameters.AddWithValue ("cid", c.Id);
cmd.ExecuteNonQuery ();
}
@ -80,7 +78,6 @@ namespace WorkFlowProvider
dr.GetOrdinal ("title"));
circ.Owner = dr.GetString (
dr.GetOrdinal ("owner"));
circ.IsPrivate = !dr.GetBoolean (dr.GetOrdinal ("public"));
}
dr.Close ();