Arithmetic exception, numeric overflow, or string truncation
Bonjour,
Il y a une chose que je n'ai pas comprise.....
Lorsqu'on défini dans une table un champ Varchar (30) et que dans une PS lors d'un insert/update ce même champ est de 25 suite à une erreur. Pourquoi FB ne fait pas automatiquement la troncature il me semble que certain SGBD le font, non ? A la place il nous renvoi le message et donc ca reste bloquer:
Code:
1 2 3 4 5 6 7 8
|
Message: Dynamic SQL Error
SQL error code = -303
arithmetic exception, numeric overflow, or string truncation
string right truncation
expected length 100, actual 150
Incompatible column/host variable data type
GDS Code: 335544569 - SQL Code: -303 - Error Code: 249 |
De plus ca n'affiche pas le nom du champ ca aurait été plus simple pour dépister si on avait de nombreux champs de type chaine.
Merci.