BUG REPORT: Delete context ignores max parameter
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17011
interpreted = N
texte = >>[search>>db=calendar.db&bwcalendarDatedatarq=02/29/&eqartistIDdatarq=[artistID]&rank=off&>>max=1]>>>>[delete>>db=calendar.db&bwcalendarDatedatarq=02/29/&eqartistIDdatarq=[artistID]&rank=off&>>max=1]>>These are designed to work as expected. If you discover that [delete]>ignores rank and max, then that is considered a bug and will be fixed.WARNING:I just tested this, and the delete context does, in fact, ignore the max parameter -- so it's definitely a bug. In my test, this code:[delete db=calendar.db&bwcalendarDatedatarq=04/01&rank=off&max=1]should delete only the FIRST occurrence of 04/01 in the database -- but instead, ALL records beginning with 04/01 were deleted.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
|
- BUG REPORT: Delete context ignores max parameter (Kenneth Grome 1998)
|
>>[search>>db=calendar.db&bwcalendarDatedatarq=02/29/&eqartistIDdatarq=[artistID]&rank=off&>>max=1]>>>>[delete>>db=calendar.db&bwcalendarDatedatarq=02/29/&eqartistIDdatarq=[artistID]&rank=off&>>max=1]>>These are designed to work as expected. If you discover that
[delete]>ignores rank and max, then that is considered a bug and will be fixed.WARNING:I just tested this, and the delete context does, in fact, ignore the max parameter -- so it's definitely a bug. In my test, this code:[delete db=calendar.db&bwcalendarDatedatarq=04/01&rank=off&max=1]should delete only the FIRST occurrence of 04/01 in the database -- but instead, ALL records beginning with 04/01 were deleted.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCatalog dying in WebTen Revisited (1998)
Developers in Washington State (2004)
Error:Too many nested [xxx] contexts (1997)
back button loses cart (2000)
Format of Required fields error message (1997)
Count how many items in a summ total (2003)
Newbie questions (2000)
Search crashing server (1998)
Include a big block of text (1997)
[referrer] tag (1997)
[WebDNA] [OT] hello (2012)
[switch][case] (2004)
getmimeheader host on my local machine (2003)
Searchable WebCat (etc.) Docs ? (1997)
WebCat2 several catalogs? (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebMerchant? (1998)
Hide Ifs (2000)
using showpage and showcart commands (1996)
Include Troubles (1998)