× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



SYSCOLUMNS is an option, but the metadata should be available as I
understand it.

This length field is the only one not working for the meta data that is
available. Either a bug in the method or it's not the right one to use.



On Thu, Jul 7, 2016 at 1:03 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

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’t
querying 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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.