[fpc-pascal] Using database-specific functionality with TSQLConnector
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Wed Oct 3 09:05:10 CEST 2012
On Tue, 2 Oct 2012, Reinier Olislagers wrote:
> Hi list,
>
>
> IBConn:TIBConnection;
> ...
> IBConn:=TIBConnection(FConn.ProxyConnection);
> IBConn.UserName:=FConn.UserName;
> IBConn.Password:=FConn.Password;
> IBConn.DatabaseName:=FConn.DatabaseName;
> ...
> IBConn.CreateDB;
>
> Is that the best/easiest way? Would it make sense to make the proxy code
> in TSQLConnector public?
No. The whole idea is just to hide it.
What you want to do is not supported, and is not meant to be supported.
To do what you want, we'd need to promote CreateDB to TSQLConnection, and let
descendants handle it if they can.
Then it can be delegated to the proxy in TSQLConnector.
Michael.
More information about the fpc-pascal
mailing list