MyDAC 4.0.0.1 : issue with a working code (MyDac 3.55.x)

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

MyDAC 4.0.0.1 : issue with a working code (MyDac 3.55.x)

Post by swierzbicki » Tue 07 Jun 2005 13:51

Hi,

This worked well with the 3.55 branch.

Code: Select all

  fMyConnection:=TMyConnection.Create(nil);
  try
      with fMyConnection do
      Begin
        loginprompt:=false;
        pooling:= TCustomMyDataSet(ADataset).Connection.pooling;
        PoolingOptions  := TCustomMyDataSet(ADataset).Connection.PoolingOptions;
        Server  := TCustomMyDataSet(ADataset).Connection.Server;
        Username := TCustomMyDataSet(ADataset).Connection.Username;
        Password  := TCustomMyDataSet(ADataset).Connection.Password;
        Database := TCustomMyDataSet(ADataset).Connection.Database;
        IsolationLevel  := TCustomMyDataSet(ADataset).Connection.IsolationLevel;
        Port := TCustomMyDataSet(ADataset).Connection.port;
        ConnectionTimeout := TCustomMyDataSet(ADataset).Connection.ConnectionTimeout;
        options := TCustomMyDataSet(ADataset).Connection.options;
        //connect;
      End;
Now when compiling it under the 4.x brnach i'm getting an error with the port parameter :
Port := TCustomMyDataSet(ADataset).Connection.port;
options := TCustomMyDataSet(ADataset).Connection.options;
Connection:= TCustomMyDataSet(ADataset).Connection;
How can I solves this (this property moved from public to private ?)

Best Regards

Stephane Wierzbicki
Last edited by swierzbicki on Tue 07 Jun 2005 14:00, edited 1 time in total.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 07 Jun 2005 13:56

Use

Code: Select all

Port := TMyConnection(TCustomMyDataSet(AcxGridTableView.DataController.DataSource.DataSet).Connection).port;
instead

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 07 Jun 2005 14:10

You are too quick Ikar ;)
That is working well :)

BTW , I like the "Default Fields" option :) THAT'S GREAT
I see a lot of new options :) , but where can I find description ?
You will tell me to check the FAQ but where can I found the FAQ link / file ?

anyways, this release looks REALLY promising :)

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 07 Jun 2005 14:22

> I see a lot of new options , but where can I find description ?

Please see MyDAC help

> You will tell me to check the FAQ but where can I found the FAQ link / file ?

In root MyDAC folder

> anyways, this release looks REALLY promising

Thanks

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 07 Jun 2005 14:39

Allright, you just forgot to put the FAQ.htm file with the Delphi 7 installation
I found it in the D2005 installation.

For the new properties, it seems that there is an old help file bundled with both installations (D7 and D2005).

Here is the TmyConnection property help :

type
TMyConnectionOptions = class(TCustomMyConnectionOptions)
published
property Compress: boolean;
property Direct: boolean;
property Embedded: boolean: boolean;
property Protocol: TMyProtocol;
end;

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 08 Jun 2005 06:44

> For the new properties, it seems that there is an old help file bundled with both installations (D7 and D2005).

Please see TCustomMyDataSet.Options topic for DefaultValues property description

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Wed 08 Jun 2005 07:40

Thank you, I missed it :roll:

Post Reply