Re: [gnome-db] New patch
- From: Gonzalo Paniagua Javier <gonzalo gnome-db org>
- To: Gnome-db list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] New patch
- Date: Fri, 11 Jan 2002 01:57:31 +0100
On Fri, Jan 11, 2002 at 12:28:21AM +0100, Rodrigo Moya wrote:
> patches look fine now. Please commit.
:-) My first commit!
> hmm, I don't think it is a good idea to ALWAYS show decimal numbers with
> the maximum precision. If we do so, when we want to display an amount,
> for instance, we'll get:
>
> 100.343434545454394587740430489834934.....
>
> to say
>
> 100.34
>
> so I don't think we should show all the decmal numbers.
The default for %f is 6 digit precision. So with doubles we are
losing 9! But well, it is ok. If who use the library wants
another representation, she just have to get the value and
convert it to whatever she wants. Anyway, we should document this
'feature'.
Next:
-By watching in the logs what psql does and the source
code of it, I will soon be able to get more accurate
values for the scale of a decimal(n,p), the maximum size
of a varchar and the like. When I get it, I'll improve
that portion of the postgresl provider.
-I could do, if you want, a modified version of
display_data_model() (testing/models.c) that also shows
the column names. So every provider can use it to test
its recordsets.
-Also, I will be adding a new type (first of all I'll
modify the IDL and send it to the list to get feedback)
from time to time.
Is there any other thing you want me to do in libgda?
Bye!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]