You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connection string is built dynamically by taking user input on server name, database name, port, user name and password.
database name was in lower case and Open method on connection string throws an error.
I go back and change database name to upper case and hit connect button. At this point new connection string is populated based on user input and open command still gives error. The only way to get this work is exit application, restart and provide database name in upper case first time.
Please see the error message images in following url links.
It looks like the ConnectionPoolManager ignores casing so the same connection is reused if you change the databasename from lowercase to uppercase with connectionpooling enabled.
Connection string is built dynamically by taking user input on server name, database name, port, user name and password.
database name was in lower case and Open method on connection string throws an error.
I go back and change database name to upper case and hit connect button. At this point new connection string is populated based on user input and open command still gives error. The only way to get this work is exit application, restart and provide database name in upper case first time.
Please see the error message images in following url links.
https://drive.google.com/file/d/1dbrWFrfFIDBEJ_xKV3Hf5uMMOWMOHmMQ/view?usp=sharing
https://drive.google.com/file/d/1dbrWFrfFIDBEJ_xKV3Hf5uMMOWMOHmMQ/view?usp=sharing
To Reproduce
private string sybaseDBConnString()
{
string sybConnStr = "Data Source = @SrvR; database = @db; Port = @PORT; UID = @usn; PWD = @tlm;";
string dbConnStr = sybaseDBConnString();
AseConnection conn = new AseConnection(dbConnStr);
try
{
conn.Open();
var clms = conn.Query(mipsClmsSqlStr);
conn.Close();
MessageBox.Show("success");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace);
}
finally
{
conn.Dispose();
Expected behavior
when i rebuild the connection string with upper case, create a new connection object, i should connect with no issues.
Environment
AdoNetCore.AseClient
nuget package version 0.19.2Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: