On Sunday 02 April 2006 18:16, Stan Pinte wrote: > 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. Finalement transformer ce int4 en text est une mauvaise idée, on peut toujours utiliser int8 ou numeric.
Qu'en penses-tu ?? D. _______________________________________________ Phpcompta-contrib mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib
