On Sun, 2012-05-20 at 17:44 +0200, Murray Cumming wrote: > On Sun, 2012-05-20 at 17:39 +0200, Lukas Eder wrote: > > After all, an org.jooq.Name type as I had suggested here would > indeed > > come in handy! :-) > > https://groups.google.com/d/msg/jooq-user/SPq6lKX-BtM/Qyrly-JrjC0J > > > > I will implement #1431 in the next release 2.4.0: > > https://sourceforge.net/apps/trac/jooq/ticket/1431 > > > > It will contain the following method, which can be used with various > > plain SQL constructs: > > Name Factory.name(String) > > Many thanks. > > I guess there will be some way to the get a string from that Name, for > use when building a raw SQL query via string concatenation.
I'm finally trying this, using code like this (with some checks): Name jooqName = Factory.name(name); String[] nameParts = jooqName.getName(); String escaped = nameParts[0]; However, I just get the same string that I passed into Factory.name(), with no escaping. Also, I would expect to have to mention the SQLDialect (or the connection) somewhere, because the escaping would depend on the server used. -- [email protected] www.murrayc.com www.openismus.com -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
