Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    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
    History
    Name Last commit Last update