PostgreSQL: Nan support on fetching

git-svn-id: svn://ultimatepp.org/upp/trunk@12176 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-20 07:52:31 +00:00
parent ce7c4df17b
commit f656157406

View file

@ -638,10 +638,12 @@ void PostgreSQLConnection::GetColumn(int i, Ref f) const
f.SetValue(ScanInt64(s));
break;
case INT_V:
f.SetValue(atoi(s));
f.SetValue(ScanInt(s));
break;
case DOUBLE_V:
f.SetValue(Atof(s));
case DOUBLE_V: {
double d = ScanDouble(s);
f.SetValue(IsNull(d) ? NAN : d);
}
break;
case BOOL_V:
f.SetValue(*s == 't' ? "1" : "0");