On Tue, May 3, 2011 at 11:58 PM, Christian MICHON <[email protected]> wrote: > Hi, > > After reading most of the jdbc adapters source code, I realized a > small clob patch I needed for jdbc/jtds queries could be made directly > in the adapter itself. > > I will test this tomorrow and I will provide a patch. I'm using jtds a > lot and it took me a while to find a decent/fast solution. > > At least with this patch, I will not have to copy this piece of code > in every app I maintain and it should benefit other sequel users. > > -- > Christian >
Please find the patch attached to this email, tested on 2 big MSSQL databases. It should not affect typical MSSQL behavior through jdbc, but will improve your experience when using jtds connector. Whenever a key contains a Java::NetSourceforgeJtdsJdbc::ClobImpl object, instead of being displayed as #<Java::NetSourceforgeJtdsJdbc::ClobImpl:0x104a4b6> for example, it is now decoded as string on the fly. I used to add a to_s method to the class Java::NetSourceforgeJtdsJdbc::ClobImpl before. With this patch, it's transparent and this to_s method is not needed anymore. The patch is also available as pastie http://pastie.org/1863675 -- Christian -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
jtds-clobimpl.diff
Description: Binary data
