Bug with parsing connection strings with double semicolon

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
mnaoumov
Posts: 4
Joined: Thu 11 Aug 2011 00:19

Bug with parsing connection strings with double semicolon

Post by mnaoumov » Wed 14 Mar 2012 06:34

Hi

I found that Oracle ConnectionString parser fails if it contains double semicolon.
Microsoft providers don't fail in this situation.

var con = new OracleConnection("Data Source=orcl;;User Id=ENV01;Password=qwerty");
con.Open();

Unhandled Exception: System.InvalidOperationException: Unknown connection string
parameter ;User Id.
at Devart.Common.j.a(Hashtable A_0)
at Devart.Data.Oracle.ac..ctor(String A_0)
at Devart.Data.Oracle.bx.a(String A_0, j A_1)
at Devart.Common.DbConnectionFactory.a(String A_0, j& A_1)
at Devart.Common.DbConnectionBase.set_ConnectionString(String value)
at ConsoleApplication3.Program.Main(String[] args) in

I hope the fix will be included into next release.

EDIT: Forgot to mention used version: 6.70.302.0

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Post by Pinturiccio » Fri 16 Mar 2012 12:31

We have reproduced the issue. We will investigate it and notify you about the results as soon as possible.

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Post by Pinturiccio » Tue 27 Mar 2012 11:02

We have impoved the handling of empty options in the connection string. We will post here when the corresponding build of dotConnect for Oracle is available for download.

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Post by Pinturiccio » Thu 29 Mar 2012 14:17

The new build of dotConnect for Oracle 6.80.332 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=23775

Post Reply