OraQuery.ParamByName('MY_INT').AsInteger := 0 NOK
Posted: Fri 26 Jun 2009 12:31
The version ODAC NET 6.80.0.47 with D2009, ParamByName('x').AsInteger doesn't work anymore!
The version ODAC NET 6.70.05.45 with BDS 2005 is working fine.
Here is the code:
OraQuery.sql := 'Insert into MY_SCHEMA.MY_TABLE (MY_INT)
Values (:MY_INT)';
OraQuery.ParamByName('MY_INT').AsInteger := 0;
OraQuery.prepare;
OraQuery.execsql;
=> exception class EInternalError with message
EOraError with message 'ORA-01438: value larger than specified precision allowed for this colimn'.
In Oracle this attribute is defined as Date and the same code works fine with BD2005 and your version 8.70.
thanks
michel
The version ODAC NET 6.70.05.45 with BDS 2005 is working fine.
Here is the code:
OraQuery.sql := 'Insert into MY_SCHEMA.MY_TABLE (MY_INT)
Values (:MY_INT)';
OraQuery.ParamByName('MY_INT').AsInteger := 0;
OraQuery.prepare;
OraQuery.execsql;
=> exception class EInternalError with message
EOraError with message 'ORA-01438: value larger than specified precision allowed for this colimn'.
In Oracle this attribute is defined as Date and the same code works fine with BD2005 and your version 8.70.
thanks
michel