Information générale
Catégorie:
Conférences & événements
>>Again, HOW does it make the code less maintainable and what possible bug could be introduced? The nano-seconds (if that) of execution time?
>
>Maybe it's when the scan's alias is changed upstream. For instance, we used to Scan For through our table, but now have a cursor derived from it... and then we also have to remember to select the new alias at the end of the loop, where it still says Select MyTable. That's one more thing to maintain, and IMO, without a good reason.
Actually, the SCAN will work just fine even if you change its alias but not the SELECT at the end. The ENDSCAN still carries an explicit SELECT.
But like you, I'd be wondering "what's this doing here?". I'd be wondering if there wasn't some other block of code that was removed and the developer who removed it forgot to take a line.
Dan
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement