update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user