Menu

#1 [FIX] NullPointerException with MS SQL Server

open
nobody
None
5
2005-03-21
2005-03-21
No

Since some persons have asked for a patch, but nobody
has provided a patch yet, I've implemented a quick and
dirty hack to allow choosing the MS SQL server in the
connection dialog.
I've tracked down the bug to
net.sf.hibernator.views.ConnectionSet and corrected it.
By the way, I consider the chosen implementation
(hardcode the dialects) bad style. What about getting
the supported dialects via the reflection API? Anyway,
the patch is attached and works for me (Eclipse 3.0.1,
Build-ID 200409161125; jtds-1.0.2). This patch should
also close the issue with request id "859026".

have fun :)

Daniel Mitterdorfer

Discussion

  • Anonymous

    Anonymous - 2005-03-21

    Modified File for MS SQL Dialect

     
  • Nobody/Anonymous

    Logged In: NO

    How do I use this file ? I can't compile it

     
  • Anonymous

    Anonymous - 2005-04-21

    Patched binary version of Hibernator plugin

     
  • Anonymous

    Anonymous - 2005-04-21

    Logged In: YES
    user_id=1024482

    What does "I can't compile it" mean? What steps have you
    performed? Sure, you can't compile this file as is. You have
    to fetch version 0.9.6 of the Hibernator source code, import
    it into an Eclipse Plugin Project, change the file
    ConnectionSet.java and then you can recompile it.
    To save you time, I've attached the modified jar file. Copy
    it to your Hibernator plugin directory
    ($ECLIPSE_DIR$/plugins/hibernator_0.9.6) ; it overwrites the
    existing one. This plugin works for me, although I have
    experienced problems with the query functionality.

     

Log in to post a comment.