[Phplib-trackers] [ phplib-Patches-484875 ] "db_sql": Row bug in "query()"
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2001-11-23 15:02:29
|
Patches item #484875, was opened at 2001-11-23 06:40 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403613&aid=484875&group_id=31885 Category: None Group: None Status: Open Resolution: None Priority: 7 Submitted By: Dieter Steinwedel (dsteinwe) Assigned to: Nobody/Anonymous (nobody) >Summary: "db_sql": Row bug in "query()" Initial Comment: Hi, I think, "db_sql" has a bug. If I call the method "query", the property "Row" is set to "0" instead of "-1". This makes trouble to other implemented classes ie "table". Calling "showResult()" swallows always the first row. Setting "Row" to -1 fixes this problem. What do you think? Dieter ---------------------------------------------------------------------- >Comment By: Jesse Swensen (swensenj) Date: 2001-11-23 07:02 Message: Logged In: YES user_id=168883 I haven't look at this in a while, but if I remember the problem is in order to have the column names for the heading row of the html table, it has to do the query. This gets the data and populates the metadata. Now it can match the column names and the header values you want for your table. I think the solution should be, if it need to have headers and does the query, it should also output the row. It could do this by simply calling the other method (can't remember what the name of it is). -- Jesse ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403613&aid=484875&group_id=31885 |