Minor source code problem in testapiv3x in the SQLite Example
Original Reporter info from Mantis: Pontiac
-
Reporter name: Pontiac
Original Reporter info from Mantis: Pontiac
- Reporter name: Pontiac
Description:
Cannot compile the SQLite3 example code in \FPC\3.0.4\examples\sqlite\testapiv3x.lpi
testapiv3x.pp(41,23) Error: Incompatible type for arg no. 1: Got "ppsqlite3", expected "psqlite3"
Steps to reproduce:
Load the LPI and run. Error ensues.
Additional information:
This is for a BRAND NEW install of FPC for 3.0.4.
The correction I've found is to remove the additional "P" from the DB declaration on line 13.
db : PPsqlite3;
becomes
db : Psqlite3;
Code then compiles and executes as required.
Mantis conversion info:
- Mantis ID: 35194
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 41612 (#93e3a3e3)
- Target version: 3.2.0