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



If an alias, alternative name, is specified and it is mixed case then it
appears to be enclosed in double qoutes. See original e-mail.

This morning I duplicated the problem I am seeing with Java / JDBC on the
green screen using QM and interactive SQL.

When using QM to run a query the alias / alternative name must be enclosed
in double quotes. For example:

SELECT
-- Columns
A."xfrCtrlKey", A."xfrType", A."xfrSendRcv", A."xfrId", A."ifsPath",

A."fileRegex"
-- Tables
FROM "SYSMONDB"/"XFRCTL00" A

Removing the double quotes from the library and file doesn't seem to cause
a problem.

Removing the double quotes from the field/column names causes a problem.

SELECT
-- Columns
A.xfrCtrlKey, A.xfrType, A.xfrSendRcv, A.xfrId, A.ifsPath,
A.fileRegex

Gives this error:
Column FILEREGEX not in table XFRCTL00 in SYSMONDB.

See how the SQL engine upper cased the column name fileRegex?

I am trying to use Ibasis to map DS/400 SQL tables to Java objects. I ran
into this problem.

Circling back to my original questoin, is there a property or something in
the JDBC which would allow mixed case column names without enclosing them
in double qoutes?.





"Walden H. Leverich" <WaldenL@xxxxxxxxxxxxxxx>
10/23/2007 08:13 AM
Please respond to Java Programming on and around the iSeries / AS400

To: Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx>
cc: (bcc: Bill Blalock/TUS/US/Certegy)
Subject: RE: SQL problem with Java -- JDBC driver seems to
be turningmixedcase names into UPPERCASE


[SQL0206] Column DUEDAY4WEEKENDACTION not in specified tables.
Because the column name is actually "dueDay4WeekendAction"
Are you saying column names on the 400 are case sensitive?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.