1. 07 Sep, 2001 31 commits
  2. 06 Sep, 2001 9 commits
    • Bruce Momjian's avatar
      >Well, if it is that easy, I can do it. Patch attached and applied. · 0059c421
      Bruce Momjian authored
      >
      >> On Mon, 3 Sep 2001 22:01:17 -0500, you wrote:
      >>     public boolean isWritable(int column) throws SQLException
      >>     {
      >>         return !isReadOnly(column);
      >>     }
      
      Actually, I think this change has a consequence for this method
      in the same class:
      
          public boolean isDefinitelyWritable(int column)
              throws SQLException
          {
              return isWritable(column);
          }
      
      This is from the JDBC spec
      (http://java.sun.com/j2se/1.3/docs/api/java/sql/ResultSetMetaData.html):
      
        isReadOnly() - Indicates whether the designated column is
      definitely not writable.
      
        isWritable() - Indicates whether it is possible for a write on
      the designated column to succeed.
      
        isDefinitelyWritable() - Indicates whether a write on the
      designated column will definitely succeed.
      
      At this time we don't really implement the fine semantics of
      these methods. I would suggest the following defaults:
      
        isReadOnly()             false
        isWritable()             true
        isDefinitelyWritable()   false
      
      And that would mean that your patch is correct, but
      isDefinitelyWritable() would need to be patched accordingly:
      
          public boolean isDefinitelyWritable(int column)
              throws SQLException
          {
              return false;
          }
      
      Again, both in jdbc1 and jdbc2.
      
      Regards,
      Ren? Pijlman <rene@lab.applinet.nl>
      0059c421
    • Bruce Momjian's avatar
      Update transactions for nested idea. · 1fbb2d9c
      Bruce Momjian authored
      1fbb2d9c
    • Bruce Momjian's avatar
      Update TODO list. · 68a3d2ef
      Bruce Momjian authored
      68a3d2ef
    • Bruce Momjian's avatar
      Update TODO list. · e64ca057
      Bruce Momjian authored
      e64ca057
    • Bruce Momjian's avatar
      Update TODO list. · e2b668bb
      Bruce Momjian authored
      e2b668bb
    • Bruce Momjian's avatar
      On Mon, 3 Sep 2001 22:01:17 -0500, you wrote: · afa178e7
      Bruce Momjian authored
      >public boolean isWritable(int column) throws SQLException
      >{
      >        if (isReadOnly(column))
      >                return true;
      >        else
      >                return false;
      >}
      
      The author probably intended:
      
          public boolean isWritable(int column) throws SQLException
          {
              return !isReadOnly(column);
          }
      
      And if he would have coded it this way he wouldn't have made
      this mistake :-)
      
      >hence, isWritable() will always return false. this is something
      >of a problem :)
      
      Why exactly? In a way, true is just as incorrect as false, and
      perhaps it should throw "not implemented". But I guess that
      would be too non-backwardly-compatible.
      
      >let me know if i can provide further information.
      
      Will you submit a patch?
      
      Regards,
      Ren? Pijlman <rene@lab.applinet.nl>
      afa178e7
    • Bruce Momjian's avatar
      Update TODO list. · e4cfff65
      Bruce Momjian authored
      e4cfff65
    • Bruce Momjian's avatar
      Add mutex test. · e9dc342e
      Bruce Momjian authored
      e9dc342e
    • Bruce Momjian's avatar
      Update TODO list. · 11808a9f
      Bruce Momjian authored
      11808a9f