Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and Oracle high precision numbers
Message
De
08/06/2005 11:31:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
CursorAdapter and Oracle high precision numbers
Divers
Thread ID:
01021414
Message ID:
01021414
Vues:
109
Hello,

I am looking for a workaround for a bug or limitation which I read about a long time ago, but cannot remember where.
When retrieving a cursoradapter from an Oracle database through OleDB (Oraoledb.Oracle provider), the number fields with precision>=20 don't seem to be translated correctly. That includes fields declared as NUMBER, without specified precision. For instance, when creating a CA called "test" out of the query "SELECT bytes FROM user_extents", the datatype of "test.bytes" is "C", although the bytes field is declared to NUMBER in Oracle.
This problems happens only with the CA. If with the same query I directly use an ADO recordset to get the values, the datatype is then "N" as it should.

What should I do ? Is it possible to change the datatype in the CA with something like DBSETPROP ? I cannot change the Oracle precision since I am querying the Oracle data dictionary.

Best regards,

David
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform