XQueries fails (tested on DB2)
------------------------------

                 Key: JRUBY-2430
                 URL: http://jira.codehaus.org/browse/JRUBY-2430
             Project: JRuby
          Issue Type: Bug
          Components: ActiveRecord-JDBC
    Affects Versions: JRuby 1.1
         Environment: Ubuntu Linux 7.10
DB2 9.5
            Reporter: Leonardo Borges
         Attachments: JdbcAdapterInternalService.java

The class JdbcAdapterInternalService has a bug(I think) in the method select_p 
that prevents a XQuery select statement
from being recognized as a select statement, falling always to the 
executeUpdate method, thus failing.

The query has the following format:

"xquery  declare default element namespace "http://private";declare namespace
h="http://private/ns1";declare namespace hi="http://private/ns2";; <Private> { 
for $h
in db2-fn:sqlquery("SELECT xmldata FROM..."

Not sure if it's the best solution, but it's working so far on our project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to