This commit is contained in:
Wesley Hofman
2025-08-29 17:28:56 +02:00
parent 6a44bd4fd2
commit 07753f3984
26 changed files with 220 additions and 92 deletions

View File

@@ -16,7 +16,7 @@ namespace Maser.Feanor.MIDSInterface
const string UserID = "mids_userquery";
const string Password = "23uRUVfq6dXXHMWN";
const string Catalog = "mids_maser";
const string Server = "enterprise.maser.nl";
const string Server = "meeu001sqvp007.itiz-me-eu.local"; // was enterprise.maser.nl
// Help variables, not accessible
private static Int32 _DB_project_id;
@@ -518,11 +518,18 @@ namespace Maser.Feanor.MIDSInterface
//SubProjectNumber
);
Connection = GetConnection();
Console.WriteLine(Connection.ConnectionString.ToString());
MySqlCommand cmd = new MySqlCommand(query);
Console.WriteLine("query " + query.ToString());
cmd.Connection = Connection;
Console.WriteLine(Connection.ConnectionString.ToString());
Connection.Open();
Int64 result = (Int64)cmd.ExecuteScalar();
Console.WriteLine("result " + result.ToString());
return result;
}
catch
@@ -859,10 +866,12 @@ namespace Maser.Feanor.MIDSInterface
);
Connection = GetConnection();
MySqlCommand cmd = new MySqlCommand(query);
Console.WriteLine("query " + query.ToString());
cmd.Connection = Connection;
Connection.Open();
Int64 result = (Int64)cmd.ExecuteScalar();
Console.WriteLine("result "+result.ToString());
return result;
}
catch