mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-23 06:13:07 -06:00
PostgreSQL: Nan support on fetching
git-svn-id: svn://ultimatepp.org/upp/trunk@12176 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ce7c4df17b
commit
f656157406
1 changed files with 5 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue