https://bugzilla.novell.com/show_bug.cgi?id=669284
https://bugzilla.novell.com/show_bug.cgi?id=669284#c0 Summary: System.Data.OdbcConnection appears to not find the DSN's configured on the system Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: i386 OS/Version: Mac OS X 10.6 Status: NEW Severity: Major Priority: P5 - None Component: Sys.Data AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Other Blocker: No Created an attachment (id=412076) --> (http://bugzilla.novell.com/attachment.cgi?id=412076) C & CS SAmple code (Xcode Project) Description of Problem: OdbcConnection cannot resolve DSN's that are valid and test with the native iODBC configuration on the system. (Produces error that the DSN does not exist and no Default Driver is configured) Steps to reproduce the problem: 1. Install an ODBC Driver (used multiple drivers for testing this, www.actualtechnologies.com PostgreSQL driver is easy to configure, the trial version is fine for this test) 2. Configure a DataSource (User or System it does not matter) named "Test" and connect it to a database. 3. At the end of the configuration, ensure that the connection works using the Test option in the dialogs. 4. Provided are two code samples, OdbcTest-C.zip which is a C sample that will connect using the Test DSN and should find the DSN and throw the expected error about the trial version limitations of 3 records. The second, ODBCTest-CS.zip is a C# sample using Mono that will fail to connect to the same DSN. This sample does work in Windows .NET CLR against a DSN name Test. This was tested on OS X 10.6, as well as 10.5 in both PPC and i386 variants, same results across the board, all tested again Mono 2.8.2 Actual Results: Cannot find the DSN and No default Drivers Defined Expected Results: Open() should connect without error, or at the very least connect with an error reflecting the driver limitations. How often does this happen? Always Additional Information: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
