S
sjoshi
Hi All
It seems I can't use this to get Guid from OracleDataReader
int iOid = oRdr.GetOrdinal("OID");
while(oRdr.Read())
{
// Guid theOid = oRdr.GetGuid(iOid); //This fails in Oracle
Guid theOid = GetGuidFromRAW(oRdr.GetValue(iOid));
}
I have to use this kludge instead:
public static Guid GetGuidFromRAW(object oracleRaw)
{
byte[] b = (System.Byte[])oracleRaw;
return new System.Guid(b);
}
Is this a known issue ??
thanks
Sunit
It seems I can't use this to get Guid from OracleDataReader
int iOid = oRdr.GetOrdinal("OID");
while(oRdr.Read())
{
// Guid theOid = oRdr.GetGuid(iOid); //This fails in Oracle
Guid theOid = GetGuidFromRAW(oRdr.GetValue(iOid));
}
I have to use this kludge instead:
public static Guid GetGuidFromRAW(object oracleRaw)
{
byte[] b = (System.Byte[])oracleRaw;
return new System.Guid(b);
}
Is this a known issue ??
thanks
Sunit