Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: put null on string variable remember previous put
Message
De
09/04/2004 05:12:10
 
 
À
09/04/2004 02:17:40
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00892851
Message ID:
00893482
Vues:
24

Speaking of "standard logic", your "answer" to the "question" actually contains a potential bug due to improper handling of NULLS; the COALASCE, as coded, may still return NULLS in the event that ALL fields contain NULLS and therefore needs an extra NULLs test: eg.

SELECT NULLIF(COALESCE( ..., ..., ...), [...]) AS ...

Or was it your intention to allow NULLs in the result in any event ? If not, let's skip any more talk about "standard developer gaussian distributions" (sic).


Why this complication?


If i allow NULLs COALESCE() and SurrogateN.myField Nullable are suffiecient.

If i not allow NULL:

solution A:
SurrogateN.myField is NOT Nullable and is filled with the default value
solution B:
... COALESCE(M,......,SurrogateN.myField,DefaultValue)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform