Bitcoin Echo Test seems to work all the way

This commit is contained in:
Rick Falkvinge
2017-11-23 05:20:05 +01:00
parent 24d70c4c77
commit c7efc79c62
14 changed files with 66 additions and 75 deletions
+11 -6
View File
@@ -80,9 +80,14 @@ namespace Swarmops.Database
{
connection.Open();
DbCommand command =
GetDbCommand( // this ORDERBY + LIMIT gets the oldest first in a FIFO queue
"SELECT " + backendServiceOrderFieldSequence + ConstructWhereClause("BackendServiceOrders", conditions) + " ORDER BY BackendServiceOrderId LIMIT " + batchMaxSize.ToString(CultureInfo.InvariantCulture), connection);
string sql = "SELECT " + backendServiceOrderFieldSequence +
ConstructWhereClause("BackendServiceOrders", conditions) +
" ORDER BY BackendServiceOrderId LIMIT " +
batchMaxSize.ToString(CultureInfo.InvariantCulture);
// this ORDERBY + LIMIT gets the oldest first in a FIFO queue
DbCommand command = GetDbCommand(sql, connection);
using (DbDataReader reader = command.ExecuteReader())
{
@@ -112,7 +117,7 @@ namespace Swarmops.Database
DbCommand command = GetDbCommand("CreateBackendServiceOrder", connection);
command.CommandType = CommandType.StoredProcedure;
AddParameterWithName(command, "dateTime", now);
AddParameterWithName(command, "nowUtc", now);
AddParameterWithName(command, "backendServiceClassName", backendServiceClassName);
AddParameterWithName(command, "orderXml", orderXml);
AddParameterWithName(command, "organizationId", organizationId);
@@ -135,7 +140,7 @@ namespace Swarmops.Database
command.CommandType = CommandType.StoredProcedure;
AddParameterWithName(command, "backendServiceOrderId", backendServiceOrderId);
AddParameterWithName(command, "dateTime", now);
AddParameterWithName(command, "nowUtc", now);
if (Convert.ToInt32(command.ExecuteScalar()) != 1) // returns count of rows updated
{
@@ -156,7 +161,7 @@ namespace Swarmops.Database
command.CommandType = CommandType.StoredProcedure;
AddParameterWithName(command, "backendServiceOrderId", backendServiceOrderId);
AddParameterWithName(command, "dateTime", now);
AddParameterWithName(command, "nowUtc", now);
if (Convert.ToInt32(command.ExecuteScalar()) != 1) // returns count of rows updated
{