Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and Null values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01236827
Message ID:
01236843
Vues:
14
>>Hello!
>>
>>I'm using CursorAdapter to access a MS-SQL database. Some fields (Integer) accept NULL values and it is used in contraint checks. So...
>>
>>oCa.CursorFill(.T.,.T.) && Create an empty cursor
>>? MyCursor.FieldThatAcceptsNullValues && Returns 0
>>Append Blank In MyCursor
>>? MyCursor.FieldThatAcceptsNullValues && It still returns 0
>>
>>Then, if this field is not updated by user, when I try to save it, I got a SQL error message because it is like I trying to save 0 instead NULL value.
>>
>>By now, I added "DEFAULT NULL" in CursorSchema property and it works... But I have a lot of fields to do this, and I was wondering if exists an easy way to set it, maybe some CursorAdapter Property, ...
>>
>>Any idea?
>
>Not that I know about it, sorry.
>
>I just wandering why you allow NULLs in fields other then DateTime?

Could they be FK to some tables?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform