LazDataDesktop: removed obsolete IFDEFs (register all possible engines), issue #39836

This commit is contained in:
Maxim Ganetsky 2022-07-30 01:18:12 +03:00
parent c5e879e4e5
commit fd7e574b54
2 changed files with 0 additions and 28 deletions

View File

@ -295,8 +295,6 @@ implementation
{$R *.lfm}
{ $DEFINE HAVEMSSQLCONN}
uses
frmselectconnectiontype, reglddfeatures,
frmimportdd,frmgeneratesql,fpddsqldb,frmSQLConnect;

View File

@ -7,20 +7,6 @@ unit reglddfeatures;
and likely add a connection callback to RegisterConnectionCallBacks.
}
{ MS-SQL server connection}
{$IF FPC_FULLVERSION>30001}
{$DEFINE HAVEMSSQLCONN}
{$ENDIF}
{ MySQL 5.6 and 5.7 connections }
{$IF FPC_FULLVERSION>30100}
{$DEFINE HAVEMYSQL5657CONN}
{$ENDIF}
{$IFDEF VER3_0_4}
{$DEFINE HAVEMYSQL5657CONN}
{$ENDIF}
{$mode objfpc}{$H+}
interface
@ -28,25 +14,19 @@ interface
uses
// Data dictionary support for database types
fpdddbf, // DBF
{$ifndef win64}
fpddfb, // Firebird
fpddmysql40, // MySQL 4.0
fpddmysql41, // MySQL 4.1
fpddmysql50, // MySQL 5.0
fpddmysql51, // MySQL 5.1
fpddmysql55, // MySQL 5.5
{$ifdef HAVEMYSQL5657CONN}
fpddmysql56, // MySQL 5.6
fpddmysql57, // MySQL 5.7
{$endif HAVEMYSQL5657CONN}
fpddoracle, // Oracle
fpddpq, // PostgreSQL
{$endif}
fpddsqlite3, // SQLite 3
fpddodbc, // Any ODBC supported
{$ifdef HAVEMSSQLCONN}
fpddmssql,
{$endif HAVEMSSQLCONN}
// code generators
{$IF FPC_FULLVERSION>=30200}
fpcgfieldmap,
@ -77,25 +57,19 @@ end;
procedure registerengines;
begin
{$ifndef win64}
RegisterFBDDEngine;
RegisterMySQL40DDEngine;
RegisterMySQL41DDEngine;
RegisterMySQL50DDEngine;
RegisterMySQL51DDEngine;
RegisterMySQL55DDEngine;
{$ifdef HAVEMYSQL5657CONN}
RegisterMySQL56DDEngine;
RegisterMySQL57DDEngine;
{$endif}
RegisterOracleDDEngine;
RegisterPostgreSQLDDengine;
{$endif}
RegisterSQLite3DDEngine;
RegisterODBCDDengine;
{$IFDEF HAVEMSSQLCONN}
RegisterMSSQLDDEngine;
{$ENDIF}
end;