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

ResultSetMetaData.java

Blame
    • Bruce Momjian's avatar
      4f63a0e1
      Attached is a patch that fixes ResultSetMetaData.isNullable() in · 4f63a0e1
      Bruce Momjian authored
      the JDBC driver.
      
      This method is currently unimplemented and always returns
      ResultSetMetaData.columnNullable. This is obviously incorrect
      when a column is defined with NOT NULL or PRIMARY KEY. And we
      have to think of check constraints, views, functions etc.
      
      The patch simply changes the return value to
      ResultSetMetaData.columnNullableUnknown. This is until someone
      comes up with a real implementation of course.
      
      On Fri, 14 Sep 2001 17:53:50 +0200, Tomisaw Kity?ski wrote:
      >Hello there,
      >
      >could someone tell me, please, do I have any chance to get
      >proper implementation of above method in JDBC (1.1+) soon?
      >
      >Current "return 1" works fine on most tables, however it seems
      >to be a little bit incorrect with some of them ;)
      
      Ren? Pijlman
      4f63a0e1
      History
      Attached is a patch that fixes ResultSetMetaData.isNullable() in
      Bruce Momjian authored
      the JDBC driver.
      
      This method is currently unimplemented and always returns
      ResultSetMetaData.columnNullable. This is obviously incorrect
      when a column is defined with NOT NULL or PRIMARY KEY. And we
      have to think of check constraints, views, functions etc.
      
      The patch simply changes the return value to
      ResultSetMetaData.columnNullableUnknown. This is until someone
      comes up with a real implementation of course.
      
      On Fri, 14 Sep 2001 17:53:50 +0200, Tomisaw Kity?ski wrote:
      >Hello there,
      >
      >could someone tell me, please, do I have any chance to get
      >proper implementation of above method in JDBC (1.1+) soon?
      >
      >Current "return 1" works fine on most tables, however it seems
      >to be a little bit incorrect with some of them ;)
      
      Ren? Pijlman