Mur
User
 Platinum Boarder
| Posts: 116 |   | Karma: 0 |
|
RE: ORA-01475
|
|
Posted: 2003/05/07 08:01 |
|
|
|
|
Before executing query you have to assign a datatype to parameter. When you assign value to parameter using AsFloat, AsString etc, appropriate datatype is assigned implicitly. When you assign value using AsString, then AsFloat to the same parameter, you get ORA-01475, because datatype is changing. Param[i].Clear does not assign datatype, datatype remains intact. If first record in you dataset appears to have null value, datatype remains unassigned, because AsFloat has not been used yet and you get NOE7/VAR. The best way to deal with this issue is to assign Datatype explicitly before processing first record. Param[i].Datatype := ftFloat or if you have same number of fields ansd params Query.Param[i].Datatype := Query.Fields[i].Datatype
|
|