Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#822 sql:insert fails with ClassCastException

v9.0
closed
Michael Kay
5
2012-10-08
2008-05-24
Michael Kay
No

If a sql:insert or sql:update instruction is contained within an xsl:for-each, and one of the contained sql:column elements has a select expression whose value is independent of anything defined in the for-each loop (for example, if its value is a string literal or a global variable), the the instruction fails at run-time with a ClassCastException, saying that an expression of type LocalVariableReference cannot be cast to SQLColumn.ColumnInstruction.

A patch is being placed in Subversion. Test case sql002.

Discussion

  • Michael Kay
    Michael Kay
    2008-06-02

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.0.0.6