Vincent Snijders wrote 17 lines
2012/10/31 Juha Manninen <
<mailto:>>
On Wed, Oct 31, 2012 at 10:49 PM, Maxim Ganetsky <
<mailto:>> wrote:
> It seems that this revision isn't yet in 2.6.x. BTW, won't it
break Lazarus
> compilation with FPC 2.6.0?
I have FPC 2.6.0 and it compiles OK.
Somebody reported that (when compiling with fpc 2.6.0), there no
postgresql connection anymore for win32.
That somebody may try the following patch (untested), as it appears the current version disables the postgresql connector if the compiler is older than 2.6.1.
-------------- next part --------------
Index: components/sqldb/registersqldb.pas
=================================================================== --- components/sqldb/registersqldb.pas (revision 39290) +++ components/sqldb/registersqldb.pas (working copy) @@ -18,13 +18,19 @@
unit registersqldb;
{$mode objfpc}{$H+}
-{$IFNDEF win64}
+{$IFDEF win64}
+{$IF FPC_FULLVERSION>= 20601}
+{$DEFINE HASPQCONNECTION}
+{$ENDIF FPC_FULLVERSION>= 20601}
+{$ELSE}
{$DEFINE HASMYSQL4CONNECTION}
{$DEFINE HASORACLECONNECTION}
+// On non-Win64, PostgreSQL connection should always be available, +// regardless of FPC version
+{$DEFINE HASPQCONNECTION}
{$ENDIF}
{$IF FPC_FULLVERSION>= 20601}
-{$DEFINE HASPQCONNECTION}
{$DEFINE HASMYSQL55CONNECTION}
{$IF DEFINED(BEOS) OR DEFINED(HAIKU) OR DEFINED(LINUX) OR DEFINED(FREEBSD) OR DEFINED (NETBSD) OR DEFINED(OPENBSD) OR DEFINED(WIN32) OR DEFINED(WIN64)}
// MS SQL Server and Sybase ASE connectors were introduced in the FPC 2.7 development branch,