When I perform a query with net.liftweb.db.DB.performQuery(sql) for my int and double columns I am getting zeros when the database has null. It seems to me that DB.asAny and DB.asString should check for null and leave that value as null instead of calling (for example) rs.getDouble(pos) and getting back 0.0
Problem code is at:
(In [[r:d0baf2e1f0d6963ffa4b6f36c081e2badfe698e9]]) Closes #1180. Return types for DB columns that are primitives will come back as null rather than 0/false if the columns are null
Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/1180
Closes #1180. Return types for DB columns that are primitives will co…
…me back as null rather than 0/false if the columns are null
This has been fixed since 2.5.1 as per above commit.