TSQLServer

Why has not member fDB (TSQLServer class) any “getter” ? Exist another way how get currently selected database ?

Thanks, Jan

Hi, Jan

I see no reason why fDB cannot have getter method.
But actually, fDB has different meaning for Oracle, MySQL, PgSQL & ODBC plugins. For MySQL & PgSQL it is selected database, for Oracle & ODBC it is just string, supplied in TSQLServer::Connect() method.

Therefore, one should clearly separate this information.
Probably, one should implement GetSelectedDataBase() and GetConnectionString() methods.

Is it ok for you?
By the way, which data base you are using?

Regards,
Sergey

Privet Sergey,
using MySQL and GetSelectedDataBase() will be great !

Thanks, Jan

Hi, Jan

I add TSQLServer::GetDB() method as you suggested.
It should provide name of selected database for MySQL plugin.
Also in case of ODBC (if you will deside to use MySQL with ODBC interface)
method should work correctly for you.

Regards,
Sergey