phpcompta-contrib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpcompta-contrib] bug à l'insertion d'une fiche...


From: Stan Pinte
Subject: Re: [Phpcompta-contrib] bug à l'insertion d'une fiche...
Date: Sun, 02 Apr 2006 18:16:54 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Stan Pinte wrote:

>*Warning*: pg_query(): Query failed: ERROR: integer out of range in
>*c:\export\phpcompta\include\postgres.php* on line *104*
>Operation cancelled due to error : insert into tmp_pcmn
>(pcm_val,pcm_lib,pcm_val_parent) values (48910000001,'Tanguy Pinte',4891000)
>
>--> curieux, non?
>  
>

en fait non, quand on sait que le champs pcm_val est de type int4 dans
PostgreSQL, donc entier 32 bits...

48910000001 > 4294967296 (2^32-1)

Maintenant de deux choses l'une:

soit le type int4 est mal choisi, soit l'algoritme de création de fiches avec 
ajout automatique de poste comptable est foireux.

Stan.

>Stan.
>
>
>_______________________________________________
>Phpcompta-contrib mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib
>  
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]