Menu

#640 PostgreSQL compile fails w/o MySQL

Unknown
closed
nobody
None
Bug Report
2025-10-09
2025-10-08
dwb
No

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'

Discussion

  • dwb

    dwb - 2025-10-08
    • summary: FPostgreSQL compile fails w/o MySQL --> PostgreSQL compile fails w/o MySQL
     
  • marsupilami79

    marsupilami79 - 2025-10-09
     
  • marsupilami79

    marsupilami79 - 2025-10-09

    Fixed in [r8451].

     

    Related

    Commit: [r8451]

  • marsupilami79

    marsupilami79 - 2025-10-09
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB