Little Moose Error
Its little bird day here in the Moose-Pen
How does that 'The Be Good Tanyas' song go?
And I sing, the littlest birds sing the prettiest songs …For us Perl types it should be
And I swear, the littlest typos make the ugliest bugs ...You will remember that I left off yesterday with this little bug;
Expected SQL--> SELECT people.first_name, people.last_name, people.bonus * abs(?) FROM people
# Generated SQL-> SELECT people.first_name, people.last_name, people.bonus * abs(?),1 FROM people
I was getting ',1' tacked onto the end of some of my generated SQL.
This one proved rather frustrating to track down, and it took much more time than one would expect. I suspected it has something to do with the 'function' part of the '_field_sql' code so I started there but despite my best efforts of adding warnings on each line I could not find it.