System i Metadata: Source for View wont show correctly
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
The DB2 Plugin tried to read tables from qsys2.systables.
I replaced this for now by
SELECT VIEW_DEFINITION
FROM QSYS2.SYSVIEWS
WHERE TABLE_SCHEMA = '...'
AND TABLE_NAME = '...'
This for my example reads the view source almost right. But the table name it returns seems not right although I can execute the source SQL.
Nonetheless the change is committed and will be available in future snapshots.
If you know of a better place to read view sources from. please let me know.