Regression in PQConnection
Summary
In commit 68c52cf0 something got broken, that makes TPQConnection.GetExtendedFieldInfo execute an invalid query, which results in the error: "Error getting typeinfo".
System Information
- Operating system: Windows 10
- Processor architecture: x86-64
- Compiler version: trunk
- Device: Computer
Steps to reproduce
Make a table, run a "SELECT * FROM" query on that table, drop the table, make a NEW table with the same name, run the same select query again.
Looking at the code, there is more broken than just that, because it makes no sense.
Example Project
Just look at TPQConnection.GetExtendedFieldInfo, it's clear that it isn't executing a valid query.
What is the current bug behavior?
See here: https://forum.lazarus.freepascal.org/index.php/topic,63465.0.html
What is the expected (correct) behavior?
That a dataset with the contents of the table are returned.