10g client (8i, 9i, and 11g work fine)
10g database although this doesn't seem to matter
OraCall.OCIUnicode is True
TOraSession.UseUnicode is True
We are seeing ORA-01036. The problem appears to be related to a bind variable named 'n' I have tested with several queries and the variable datatype and value doesn't seem to matter. Other variable names may also cause this, but this is the case that we are seeing. We unfortunately have many variables by this name. If there is a workaround that can be posted that would help greatly.
Steps to reproduce:
1. Create a TOraSession with UseUnicode and 10g client
2. Create/Execute a query as...
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
Qry: TSmartQuery;
begin
Qry := TSmartQuery.Create(nil);
try
Qry.Session := OraSession1;
Qry.SQL.Text := 'SELECT * FROM DUAL where 0 = :n';
Qry.Params.ParamByName('n').DataType := ftInteger;
Qry.Params.ParamByName('n').Value := 0;
Qry.Active := True;
finally
Qry.Free;
end;
end;
Thanks,
Michael