|
On May 21, 2021, at 10:16 AM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:
I was trying to get the number of members in various source physical files.
So I whipped up a little Python script containing the following SQL:
select count(*) from qsys2.syspartitionstat
where table_schema = ? and table_name = ?
For some files, this works fine. For others, it (very quickly) returns
0, even though there are definitely members. This happens whether I'm
running from my PC or from PASE. The same SQL works fine in STRSQL for
any file I've tried.
If there is any pattern to it, it seems the files with a lot of
members (say, over a couple thousand) come back as empty over ODBC.
Files with a smaller number of members work fine with both ODBC and
STRSQL.
Has anyone else noticed this? Is it a limitation of the ODBC driver?
John Y.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.