FbConnection.GetSchema() throws reference exception
---------------------------------------------------
Key: DNET-102
URL: http://tracker.firebirdsql.org/browse/DNET-102
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.5.0
Environment: FB SS 2.1.0 Beta 1
Windows Server 2003
Net Provider 2.5 (rev 306 trunk)
Reporter: Eduardo Gamboa
Assignee: Carlos Guzman Alvarez
The following code worked fine with NETProvider 2.1.0 rev 306. But with
NetProvider 2.5.0 rev 306 it throws the exception:
"Object reference not set to an instance of an object."
/**********************************************/
static void Main(string[] args)
{
try
{
FbConnectionStringBuilder fbCsb = new
FbConnectionStringBuilder();
fbCsb.UserID = "SYSDBA";
fbCsb.Password = "masterkey";
fbCsb.Dialect = 3;
fbCsb.Database = @"d:\temp\employee.fdb";
FbConnection srcConn = new FbConnection(fbCsb.ConnectionString);
srcConn.Open();
foreach(DataRow r in srcConn.GetSchema("TABLES").Rows)
Console.WriteLine("Table name: {0}",
r.ItemArray[2].ToString());
srcConn.Close();
Console.WriteLine("Ok.");
Console.ReadKey();
}
catch (Exception err)
{
Console.WriteLine(err.Message);
Console.ReadKey();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider