|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: DBI returning mysql columns in strange order.by dragonchild (Archbishop) |
| on Oct 09, 2003 at 18:29 UTC ( [id://298134]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I am shocked that no-one suggested the obvious solution, which also happens to be the better solution in the long run. Change the SELECT statement to specify what you're looking for! This would require some rewriting and quite a lot of rethinking the design, but it would be more maintainable and extensible. If you want, I can provide an example of how I would write this snippet using structured design principles. ------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||