ORA-1036 when executing function without params
Posted: Wed 22 May 2013 15:00
Hi, I'm trying to execute a function who has no parameters. This function return a varchar
I receive an error ORA-0136: illegal variable name/number
Here is my code :
I use almost the same code to execute another function who has parameters and it works fine.
Any idea ?
Thanks !
PS: EF4.50 - dotConnect 6.60
I receive an error ORA-0136: illegal variable name/number
Here is my code :
Code: Select all
using (GeneralEntities dataContext = this.GetEntitiesObject<GeneralEntities>())
{
OracleConnection connexion = (dataContext.Connection as EntityConnection).StoreConnection as OracleConnection;
connexion.Open();
OracleCommand command = new OracleCommand("dbpc_cloee.getDatabasePlainText",connexion);
command.Parameters.Clear();
OracleParameter pReturn = new OracleParameter();
pReturn.Direction = System.Data.ParameterDirection.ReturnValue;
pReturn.OracleDbType = OracleDbType.VarChar;
command.Parameters.Add(pReturn);
command.ExecuteNonQuery();
return (string)pReturn.Value;
}
Any idea ?
Thanks !
PS: EF4.50 - dotConnect 6.60