PostgreSQL driver is based on MySQL driver. If the limitation is acceptable, Zeos.inc could most simply comment the interdependency or if a library user disables all but PostgreSQL for a lean build Zeos.inc could reenable MySQL (w/ message?) as a quick workaround rather than the more complicated effort of overhauling the MySQL code with PostgreSQL conditionals. Delphi 12.3 32-bit and github.com/marsupilami79/zeoslib branch 8.0-patches as of 2025-10-06 21:09:24.
Zeos.inc:
{$DEFINE ZEOS_DISABLE_MYSQL}
{.$DEFINE ZEOS_DISABLE_POSTGRESQL}
[dcc32 Error] ZPostgreSqlToken.pas(75): E2003 Undeclared identifier: 'TZMySQLQuoteState'
[dcc32 Error] ZPostgreSqlToken.pas(75): E2021 Class type required
[dcc32 Error] ZPostgreSqlToken.pas(77): E2137 Method 'NextToken' not found in base class
[dcc32 Error] ZPostgreSqlToken.pas(298): E2010 Incompatible types: 'TZQuoteState' and 'TZPostgreSQLQuoteState'
[dcc32 Fatal Error] ZParseSql.dpk(50): F2063 Could not compile used unit 'ZPostgreSqlToken.pas'
Fixed in [r8451].
Related
Commit: [r8451]