A bug in UniConnectDialog (again)

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Senad
Posts: 34
Joined: Tue 10 Dec 2013 08:07

A bug in UniConnectDialog (again)

Post by Senad » Wed 12 Aug 2015 09:37

This is UniDac 6.1.4 running on XE8 connecting to SQL Server.

Code: Select all

procedure TDataModule2.DataModuleCreate(Sender: TObject);
begin
UniConnectDialog1.Execute;
if not
UniConnectDialog1.Connection.Connected
then
halt;
end;

Code: Select all

procedure TDataModule2.UniConnection1AfterConnect(Sender: TObject);
begin
UniTable1.Open;
end;

When I type in the right credentials (username & password) but select a database that I have no access rights to, I get a warning "Invalid object name 'the name of my table'" (why is my table name getting shown?)
And when I hit the 'cancel' button in the uniconnectdialog , my main_form gets shown, which should not since no connection has been established in the first place.
So,is this a bug or what ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: A bug in UniConnectDialog (again)

Post by AlexP » Wed 12 Aug 2015 11:46

Hello,

On an attempt to connect to a database with no access UniDAC returns a correct error message: "Login failed for user 'XXXX'." Then when Cancel is clicked the application closes. Please send a small sample reproducing the problem to alexp*devart*com, including the script for creating the user.

Post Reply