[Zope] count- of-by-one?

ron@offerman.cx ron@offerman.cx
Thu, 25 Feb 1999 00:43:53 +0100


count- (statistic-name) seems to be of-by-one.

[select_systems is a ZSQL Method]

<!--#in expr="select_systems(selreslocid=4)"-->
<!--#var count-select_systems-->
<!--#/in-->

This should return 41 [counting the rows displayed when a normal report is 
displayed]. It however returns 40.

BTW, is this the most efficient way to get the number of rows returned by a 
query?

-- 
<- Ronald Offerman | ron@offerman.cx
<- Root Powered Carrot Munchers Ltd. Inc. SA AG BV

"This is Linux Country. On a quiet night, you can hear Windows NT reboot!"
"Daddy, why do those people have to use Microsoft Windows?"
"Don't stare, son; it's not polite."
"M$ Windows NT, an accident waiting to happen"
"What goes up, must come down. Ask any system administrator."
".sig too big? Flame me, I'm cold!"