On 05.Jul.2002 -- 02:52 PM, Denis Thierry wrote:
> >From oracle:
> 
> PLS-00382 expression is of wrong type
> 
> Cause: An expression has the wrong datatype for the context in which it was
> found.
> 
> Action: Change the datatype of the expression. You might want to use
> datatype conversion functions.
> 
> Hope this will help to understand what is wrong!

OK, esql translates "AsciiStream" (as in getAsciiStream()) to
Types.LONVARCHAR Apparently, Oracle needs another type for
that. There's a lookup table at the end of esql.xsl for some
types. Unknown ones are just uppercased, e.g. "foo" will be Types.FOO
(non-existant, unfortunately).

>> Another helpful thing would be a sample java code that would achieve
>> the same as you're trying to do. Maybe Oracle provides some snippets?

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to