Menu

#488 [ODBC] The returned value of OdbcConnection.Database is incorrect

open
nobody
None
5
2013-04-25
2013-04-25
Jira Trac
No

* Brief:
** The returned value of OdbcConnection.Database is incorrect

* Brief:
** The returned value of OdbcConnection.Database is incorrect

* Test Code:
{noformat}
[Test, Description(Test OdbcConnection Database Properties)]
public void ConnectProperties_Database()
{
string strConn = @Driver={CUBRID Driver};db_name=odbc_test;uid=dba server=10.34.64.57;port=33037;fetch_size=100;
OdbcConnection connCubrid = new OdbcConnection(strConn);
connCubrid.Open();
Assert.AreEqual(odbc_test, connCubrid.Database);
connCubrid.Close();
}
{noformat}

* Result: Expected: odbc_test But was: string-empty OR Expected: odbc_test But was: CUBRID

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.