× 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.



On 12 Mar 2013 11:46, Troy Hyde wrote:
<<SNIP>>

I have a file that was created using DDS. A new version was created
but a key field length was changed from 2 to 4. I have a java program
that queries that file using the jt400 toolkit. When I run a query
against the new file, I retrieve the ResultSet metadata to get the
field names and lengths. However, the metadata returned from the
query still gives the old length of the key field that was changed
from 2 to 4. If I change query slightly, the correct metadata is
returned. I believe it is the query optimizer that is returning the
incorrect metadata. How do I reset the query optimizer so that the
new metadata is returned for the query?
<<SNIP>>

The environment being utilized was not described, but perhaps the following [where the environment is described] is a match:

http://sourceforge.net/tracker/?func=detail&aid=3280651&group_id=128806&atid=712772
"...
After the underneath definition of AS/400 physical files changes the ResultSet and ResultSetMetaData got from an SQL query seems not to be aligned to the new definition of the physical files but returns the data according to the old structure of the file.

I'm using the JT400 library (version 7.2) on a Windows XP personal computer with the Sun 1.5.0_22 SE JVM, connecting to a iSeries V7R1M0 machine.
...
This is a server problem. Make sure the V7R1M0 machine has the latest
database fixpack. If this is still a problem, you'll need to contact
server support.
..."


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.