Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Huge error of Postgresql! Double fields by transmission to the program lose a fractional part!
Re: Huge error of Postgresql! Double fields by transmission to the program lose a fractional part! [message #47532 is a reply to message #47531] Wed, 25 January 2017 20:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
sergeynikitin wrote on Wed, 25 January 2017 20:31
I'll try to prepare test case tonight .


You do not understand...

I need to know what your PostgreSQL instance returns (before atof), so that I am sure we are doing the right fix.

Because very likely the problem is that your PostgreSQL is configured somehow differently than my PostgreSQL.

So pretty please, place DUMP(s) before atof (or ScanDouble), like

switch(info[i].type)
	{
		case INT64_V:
			f.SetValue(ScanInt64(s));
			break;
		case INT_V:
			f.SetValue(atoi(s));
			break;
		case DOUBLE_V:
DUMP(s);
			f.SetValue(ScanDouble(s));
			break;


then post here a log (a couple of lines is enough).

Thanks,

Mirek

[Updated on: Wed, 25 January 2017 20:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I propose to Add Postgresql to topic header
Next Topic: How can .sch express a many-to-many relationship ?
Goto Forum:
  


Current Time: Sat May 11 06:45:58 CEST 2024

Total time taken to generate the page: 0.03293 seconds