Reapply patch to support real datatype

Added support for SQL datatype REAL (as used in SQlite for floating-point numerics)