|
On Thu, Jul 7, 2016 at 1:31 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:
Don’t have an answer to your question as such Brad - but wouldn’tquerying sys columns make more sense?
In this case, I don't think so. I do think querying SYSCOLUMNS is
going to be a reliable workaround, but I don't think it "makes more
sense" than using the facility that *seems* to have been provided
specifically for this purpose.
The variable named "db" in Brad's sample code is supposed to be an
abstraction of the database connection. It has "methods" designed to
be convenient and idiomatic relative to the surrounding code. So if
those methods were working the way he (or we) expected and/or hoped,
then they would be the way to go.
As it is, he may have to "drop down" to manual retrieval of the
required information via explicit SQL.
John Y.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/opensource.
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.