UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Postby idem84 » Fri 01 Aug 2014 15:44

MySql connection string issue
Help me please
Thanks in advance!
Old versions(3.50.668 and previous) never throws, works ok

In version 3.50.712 throws "Keyword not supported: 'Server'". (for MySql).
Shouldn't be keyword 'Host'?
In version 3.50.678 throws "Keyword not supported: 'UserID'". (for MySql)
Shouldn't be 'User Id'?

Samplecode

var uniConnectionBuilder= new Devart.Data.Universal.UniConnectionStringBuilder();
uniConnectionBuilder.Provider = "MySql";
uniConnectionBuilder.DataSource = "127.0.0.1";
uniConnectionBuilder.UserId = "root";
uniConnectionBuilder.Password = "root";
uniConnectionBuilder.Database = "mydb";
uniConnectionBuilder.Pooling = false;
uniConnectionBuilder.Add("Connect Timeout", 25);
var connString=uniConnectionBuilder.ConnectionString; //throws here

Stacktrace

at System.Data.Common.DbConnectionStringBuilder.get_Item(String keyword)
at Devart.Common.DbConnectionStringBuilder.get_Item(String keyword)
at Devart.Data.Universal.UniConnectionStringBuilder.g(String A_0)
at Devart.Data.Universal.UniPropertyDescriptor.GetValue(Object component)
at Devart.Data.Universal.UniConnectionStringBuilder.a(Boolean A_0)
at Devart.Data.Universal.UniConnectionStringBuilder.GetNativeConnectionString()
at Devart.Data.Universal.l..ctor(cb A_0)
at Devart.Data.Universal.o.a(cb A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionBase A_0, cb A_1)
at Devart.Common.DbConnectionFactory.b(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.Universal.UniConnection.Open()
idem84
 
Posts: 50
Joined: Thu 04 Apr 2013 19:12

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Postby Pinturiccio » Mon 04 Aug 2014 10:32

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.
Pinturiccio
Devart Team
 
Posts: 2020
Joined: Wed 02 Nov 2011 09:44

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Postby Pinturiccio » Wed 13 Aug 2014 10:42

We have fixed the bug with throwing the "Keyword not supported: 'Server'" exception and the bug with throwing the "Keyword not supported: 'UserID'" exception with MySQL. We will post here when the corresponding build of dotConnect Universal is available for download.
Pinturiccio
Devart Team
 
Posts: 2020
Joined: Wed 02 Nov 2011 09:44

Re: UniConnectionStringBuilder Exception: Keyword not supported: 'Server'. (for MySql provider)

Postby Pinturiccio » Thu 14 Aug 2014 15:19

New build of dotConnect Universal 3.50.722 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/universal/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?t=30169
Pinturiccio
Devart Team
 
Posts: 2020
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect Universal