--WARNING! ERRORS ENCOUNTERED DURING SQL PARSING!
WITH XMLNAMESPACES (DEFAULT 'http://www.xxxx.com/api/yyyy')
SELECT a
,b
,SOME XML 's fields from RR.TT
from TABLE
cross apply xml.nodes(' / MYROOT ') [RR]([TT])'
I need just to add this literal string before select, but I don't know how to achieve this.
WITH XMLNAMESPACES (DEFAULT 'http://www.xxxx.com/api/yyyy')
I know just how to add literal with DSL.VAL('') but how about before query?
Tks
Denis--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've tried second approach. Sql is generated as expected and query executed, but resultset are not typed as expected.I.e. LocalDateTime types are java.sql.TimeStamp and so on....
Do you think ExecuteListener approach would run into same issue? If you think not i could try it.
Hi Lukas,finally I've kept first approach (the fetch one) cause I need a query local approach, not a global one (my dsl context is global, via spring 4).I've just added my already existings java8 time* converters inside the RecordMapper in getValue(), and it works.
Just to understand for future tasks, the Listener approach is always at global/config level? Or it's possible to add a listener also at query level?
@AutowiredConfiguration global;// and then:DSL.using(global.derive(ADD_WITH_XML_NAMESPACES_LISTENER)).select(...).from(...);// or even:public static DSLContext withXmlNamespaces() {return global.derive(...);}// and then (this looks as though jOOQ supported the feature):withXmlNamespaces().select(...).from(...)
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/Qn23iP3m5oA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.