I just changed my ODAC components to the newest 9.2.5 version. Earlier I have used version 7.1.0. After migration I have problem with opening some queries. In some cases ODAC give me an exception: ORA-01480 trailing null missing from STR bind value. I don't know - is it the newest version problem or older version. I wrote small test application which runs queries to the v$session view:
Code: Select all
OraSession1.Open;
OraQuery1.SQL.Text := 'select * from v$session v where v.username = :id';
OraQuery1.Prepare;
OraQuery1.ParamByName('id').AsString := '1234';
OraQuery1.Open;
Code: Select all
OraQuery1.SQL.Text := 'select * from v$session v where v.username = ''123''';
best regards
Adam Siwon