Committing a large amount of work

This commit is contained in:
Rick Falkvinge
2014-04-14 17:16:04 +00:00
parent de1e396524
commit 397b44ba5b
15 changed files with 830 additions and 23 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ namespace Swarmops.Database
string sqlQuery =
"SELECT Documents.DocumentId,Documents.ServerFileName,Documents.ClientFileName,Documents.Description,DocumentTypes.Name AS DocumentType,Documents.ForeignId,Documents.FileSize,Documents.UploadedByPersonId,Documents.UploadedDateTime From Documents,DocumentTypes " +
"WHERE Documents.Description = '" + description.Replace ("'", "''") + "' AND " +
"WHERE Documents.DocumentTypeId=DocumentTypes.DocumentTypeId AND " +
"Documents.Description = '" + description.Replace("'", "''") + "' AND " +
"Documents.UploadedDateTime > '" + DateTime.UtcNow.AddDays (-1).ToString ("yyyy-MM-dd HH:mm") + "'";
DbCommand command = GetDbCommand(sqlQuery, connection);