Small fixes

main
Inga 🏳‍🌈 14 years ago
parent f99f5ba702
commit 8677ae95ee
  1. 2
      Common/dataobjects/Board.cs
  2. 8
      IISMainHandler/handlers/DebugHandler.cs
  3. 1
      MySQLConnector/Connection.cs

@ -53,7 +53,7 @@ namespace FLocal.Common.dataobjects {
protected override void doFromHash(Dictionary<string, string> data) {
this._name = data["name"];
this._description = data["description"];
this._description = data["comment"];
this._lastPostId = int.Parse(data["lastPostId"]);
this._categoryId = int.Parse(data["categoryId"]);
}

@ -26,13 +26,11 @@ namespace FLocal.IISHandler.handlers {
context.httpresponse.WriteLine(transaction.GetHashCode().ToString());
}
}
if(context.httprequest.Path == "/boards") {
/*Board board = Board.LoadById(1);
if(context.httprequest.Path == "/boards/") {
Board board = Board.LoadById(1);
context.httpresponse.WriteLine("name: " + board.name);
context.httpresponse.WriteLine("description: " + board.description);
context.httpresponse.WriteLine("categoryname: " + board.category.name);*/
Category category = Category.LoadById(1);
context.httpresponse.WriteLine("categoryname: " + category.name);
context.httpresponse.WriteLine("categoryname: " + board.category.name);
}
}

@ -40,6 +40,7 @@ namespace FLocal.MySQLConnector {
}
command.CommandText = "SELECT * FROM " + table.compile() + " WHERE " + table.getIdSpec().compile() + " IN (" + string.Join(", ", placeholder.ToArray()) + ")";
command.Prepare();
foreach(KeyValuePair<string, string> kvp in paramsHolder.data) {
command.Parameters.AddWithValue(kvp.Key, kvp.Value);
}

Loading…
Cancel
Save