Le lundi 23 avril 2007 17:MM, Denis Bailliet a écrit : Bonsoir,
> Il y a donc 2 soucis de conversion 1 sur la première colonne et un sur > les dates le reste est correcte. > Quelqu'un a t il une solution ? Bug de la version 2.2 ? > Je joint mon fichier texte pour essais. Il n'y a pas a priori de paramètre ZEROFILL avec HSQLDB, mais un paramètre enforce_strict_size. Peut-être trouveras tu ton bonheur là-dedans ? Tiré de la doc HSQLDB : http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html Type Size, Precision and Scale Prior to 1.7.2, all table column type definitions with a column size, precision or scale qualifier were accepted and ignored. In 1.8.0, such qualifiers must conform to the SQL standards. For example INTEGER(8) is no longer acceptable. The qualifiers are still ignored unless you set a database property. SET PROPERTY "sql.enforce_strict_size" TRUE will enforce sizes for CHARACTER or VARCHAR columns and pad any strings when inserting or updating a CHARACTER column. The precision and scale qualifiers are also enforced for DECIMAL and NUMERIC types. TIMESTAMP can be used with a precision of 0 or 6 only. Casting a value to a qualified CHARACTER type will result in truncation or padding as you would expect. So a test such as CAST (mycol AS VARCHAR(2)) = 'xy' will find the values beginning with 'xy'. This is the equivalent of SUBSTRING(mycol FROM 1 FOR 2) = 'xy'. En outre, on peut faire en sorte que dans l'interface graphique les zéros s'affichent en modifiant les propriétés de format d'affichage du champ. Alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
