I'd categorize them as different kinds of bugs. The select * with fetchrow_hashref can lead to performance problems, but the bind_cols can completely break things.
During code reviews I tell people to select explicit columns and use fetchrow_hashref. I know people are sometimes going to break standards and ignore my advice. There are three options I know of: (1) give them standards that will probably keep working even if not perfectly followed, (2) audit all code for compliance, (3) fire people who write bad code.
Option (1) is my pragmatic choice. What's yours?
|Replies are listed 'Best First'.|
Re: Re: Re: select * and bind_cols considered harmful
by perrin (Chancellor) on Nov 22, 2002 at 19:18 UTC