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



Folks:

One of the developers I work with is trying to implement DB2/400 functions
in a java application.

We're encountering a problem when we try to execute the following statement:

CREATE TABLE SiLocks (ID INTEGER NOT null, ArchiveID VARCHAR(255) NOT null,
RevisionID VARCHAR(80) NOT null, UserID VARCHAR(254) NOT null, LockTime
TIMESTAMP NOT null, Annotation CLOB(1073741824), ChangePackageID
VARCHAR(20), ProjectID CLOB(1073741824) NOT null, VariantProjectID
VARCHAR(254), Sandbox CLOB(1073741824), Hostname CLOB(1073741824), MemberID
CLOB(1073741824))

We're getting the following exception:

SQLException: SQLState(54001) vendor code(-101)
java.sql.SQLException: [SQL0101] SQL statement too long or complex.

If we reduce the CLOB sizes for some of the fields, the statement works.

Any idea why this would happen?

We're using JTOpen 3.1 and connecting to a V5R1 system.

Thanks!

david




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.