Why is GetOracleDecimal() valid but not GetOracleDateTime() ?

  • Thread starter Thread starter Pia Stevens
  • Start date Start date
P

Pia Stevens

In a program I coded:

using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
.....

OracleDecimal num = reader.GetOracleDecimal(reader.GetOrdinal("MYNUM"));
OracleDateTime ts = reader.GetOracleDateTime(reader.GetOrdinal("MYDATE"));

The first fetch statement (GetOracleDecimal) statement passed successfully
the compiler while the second (GetOracleDateTime) yields a compiler error:

The type or namespace name 'OracleDataTime'could not be found"

Why ?

Pia
 
In a program I coded:

using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
....

OracleDecimal num = reader.GetOracleDecimal(reader.GetOrdinal("MYNUM"));
OracleDateTime ts = reader.GetOracleDateTime(reader.GetOrdinal("MYDATE"));

The first fetch statement (GetOracleDecimal) statement passed successfully
the compiler while the second (GetOracleDateTime) yields a compiler error:

The type or namespace name 'OracleDataTime'could not be found"

Well, the error message you've given doesn't tie in with the code
you've given: GetOracleDataTime vs GetOracleDateTime (date vs data).

Which have you *actually* got in your code?

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top