Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6127 Zobrazení

There are 2 datatypes for fixed point values and 4 for floating point numbers in SQL.

Which are used for fields.float and fields.function (type='float', store=True) ?

Thanks.

Avatar
Zrušit
Nejlepší odpověď

Hello René, it seems all of them use the 'numeric' datatype. You can check for yourself using psql and describing a table ( \d <table_name>). You can check this out in the account_voucher module with the account_voucher_line table. Install this module and then \d(escribe) the table. Hope this helps!

Best regards,

Bruno Figares.

Avatar
Zrušit
Autor

I've done that and the result is: fields.float (no digit attribute): double precision. fields.function(type='float', store=True): numeric.

Related Posts Odpovědi Zobrazení Aktivita
1
lis 22
2166
0
úno 21
1800
0
zář 24
140
4
zář 18
4235
5
dub 16
5166