OracleParameter eats prefix

OracleParameter eats prefix

Postby MihaMarkic » Fri 27 Jan 2012 20:28

Hi there,

Is it possible to preserver the original parameter name?
If I do this
Code: Select all
OracleParameter p = new OracleParameter();
p.ParameterName = ":p1";

string name = p.ParameterName;


I get "p1" and not ":p1" as I'd expect.

Update: Looks like using double colons does the trick ("::p1").
MihaMarkic
 
Posts: 1
Joined: Fri 27 Jan 2012 20:23

Postby Shalex » Tue 31 Jan 2012 14:20

Please set the OracleUtils.OracleClientCompatible property to True like
Code: Select all
    OracleUtils.OracleClientCompatible = true;
    OracleParameter p = new OracleParameter();
    p.ParameterName = ":p1";

    string name = p.ParameterName;
Shalex
Devart Team
 
Posts: 7654
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle