When I call the method GetChar(i) I get an exception of the type "method is not supported".
Is this a "System.Data.OracleClient" problem or my problem?
OracleDataReader rdr = o_cmd.ExecuteReader();
while (rdr.Read())
{
// cols is previously extracted metadata for each col (field)
for (int i=0; i<cols.Count; i++) {
string typ = col.type.ToLower();
if (typ == "decimal")
sql += rdr.GetDecimal(i).ToString();
else if (typ == "char")
char ch = rdr.GetChar(i); // *** this fails
Is this a "System.Data.OracleClient" problem or my problem?
OracleDataReader rdr = o_cmd.ExecuteReader();
while (rdr.Read())
{
// cols is previously extracted metadata for each col (field)
for (int i=0; i<cols.Count; i++) {
string typ = col.type.ToLower();
if (typ == "decimal")
sql += rdr.GetDecimal(i).ToString();
else if (typ == "char")
char ch = rdr.GetChar(i); // *** this fails