Should it be considered a bug in the book?
I'm not quite sure how aliases fit in ... does Postgres consider "
sum" in "
select sum(item) from test1t; " an alias? (Ditto sqlite)
I would think "sum" was more like a virtual field.
I get the error in trying to follow the book example, but I did my own table and filled it in using appadmin (2.18.2):
db.define_table('test1t',
Field('item', 'integer'),
Field('description', 'string')
)
test1t.id test1t.item test1t.description
1 1 something
2 2 buckle my shoe
3 3 fibonacci trey
And I did this because I ran into the issue while running a script to analyze a real database (2.15.4).
/dps