|
|
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 #47519 is a reply to message #47514] |
Wed, 25 January 2017 18:18 |
|
mirek wrote on Wed, 25 January 2017 13:30sergeynikitin wrote on Mon, 23 January 2017 09:46Yes. I can. I've Add myself to this issue.
I really wonder what U++ revision you are using, because in trunk it is:
void PostgreSQLConnection::GetColumn(int i, Ref f) const
{
if(PQgetisnull(result, fetched_row, i))
{
f = Null;
return;
}
char *s = PQgetvalue(result, fetched_row, i);
switch(info[i].type)
{
case INT64_V:
f.SetValue(ScanInt64(s));
break;
case INT_V:
f.SetValue(atoi(s));
break;
case DOUBLE_V:
f.SetValue(atof(s));
break;
and it is really really unlikely that this bug could get there in last 8 years, because in that period my major project is PGSQL and customers would really notice this within hours...
I have checked svn history and oldest revision available from 2009 has "atof" there...
Mirek
I use summer svn code. (with c++11 support).
If all correct, - it's OK! I've locally corrected version of PostgreSQL.cpp.
SergeyNikitin<U++>( linux, wine )
{
under( Ubuntu || Debian || Raspbian );
}
|
|
|
|
|
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!
By: unodgs on Mon, 23 January 2017 07:34
|
|
|
Re: 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!
By: Klugier on Mon, 23 January 2017 09:38
|
|
|
Re: 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!
By: mirek on Wed, 25 January 2017 11:30
|
|
|
Re: 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!
|
|
|
Re: 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!
By: Klugier on Wed, 25 January 2017 18:42
|
|
|
Re: 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!
By: mirek on Wed, 25 January 2017 19:02
|
|
|
Re: 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!
By: mirek on Wed, 25 January 2017 19:49
|
|
|
Re: 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!
By: mirek on Wed, 25 January 2017 20:40
|
|
|
Re: 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!
|
|
|
Re: 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!
|
|
|
Re: 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!
|
|
|
Re: 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!
|
|
|
Re: Huge error of Postgresql! Double fields by transmission to the program lose a fractional part!
By: mirek on Thu, 26 January 2017 14:10
|
|
|
Re: Huge error of Postgresql! Double fields by transmission to the program lose a fractional part!
By: mirek on Thu, 26 January 2017 15:01
|
|
|
Re: 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!
By: mirek on Thu, 26 January 2017 09:09
|
|
|
Re: Huge error of Postgresql! Double fields by transmission to the program lose a fractional part!
By: Klugier on Wed, 25 January 2017 19:03
|
Goto Forum:
Current Time: Sun May 12 23:42:33 CEST 2024
Total time taken to generate the page: 0.03800 seconds
|
|
|