there is no privacy to attribute to any circle,
they all are private, that's all.
This commit is contained in:
parent
b7fa996dbc
commit
edf89cf739
6 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue