Menu

#22 special value representing NULL

open
nobody
None
5
2020-08-26
2009-02-05
No

accept a property that specifies a string that will be interpreted as the SQL NULL value. all getters on that field will then return Null.

the property could be called nullString. the default value could be "NULL" and I would prefer to have it case sensitive.

Discussion

  • Simon Chenery

    Simon Chenery - 2014-07-15

    Is this necessary?

    You can use the SQL NULLIF function to convert unwanted column values to NULL and it is usable with other SQL expressions:

    -- Convert 'NULL' to NULL
    SELECT AUTHOR, NULLIF(COMMENT, 'NULL') FROM POSTS
    
    -- Convert 'NULL' in any case to NULL
    SELECT NULLIF(UPPER(COMMENT), 'NULL') FROM POSTS
    
     
    😕
    2
  • Simon Chenery

    Simon Chenery - 2016-01-27

    Also requested in csvjdbc-develop topic Feature request: Adding more line skipping options.

     
  • Simon Chenery

    Simon Chenery - 2020-08-26

    Also requested in csvjdbc Help Forum topic Is there a way to handle missing values.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.