[PostgreSQL] SpecificOptions are lost

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

[PostgreSQL] SpecificOptions are lost

Post by Thomas J. » Sun 11 Jan 2009 01:12

Hello,

if I do a reconact the data of SpecificOptions is lost. Is this correct?

I have login and if the user change the server or the port or what ever I do the following

Code: Select all

	UniConn->Connected = false;
	UniConn->Server = GetServer();
	UniConn->Port = GetPort();
	UniConn->Connected = true;

	DsUser->DataSet->Active = false;
	DsUser->DataSet->Active = true;
The first time is correct, but during the second time, running these steps above, error comes "Relation t_user doesn't exists".
The first time everthing ok the second not?
So I the following before the Connected=true

Code: Select all

	UniConn->SpecificOptions->Add("Schema=p_myshema");
and everything was ok.

Thanks for your help
Thomas

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 12 Jan 2009 10:45

We have fixed the bug with the Schema option. The fix will be included in the next build of UniDAC.

Post Reply