I find this type=num search strange
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48982
interpreted = N
texte = This is not a question, rather a posting of something I spent 2 hours on today.I thought the list would find it interesting. I'm using RedHat 7.2 with 4.5.1I'm working on a project here and I was thinking to have a database recordwith a SKU of Zero (0). In 4 years I never before thought of using SKU 0, butI have my crazy reasons this time.To my surprise, when using a search such as the following:[search db=admins.db&SKUsort=1&SKUtype=num&SKUsdir=as&neSKUdata=find_all]I am returned with all my records in the correctly sorted order EXCEPT sku 0.I did some digging in the archives and found out that when using type=num you needto be careful that your comparison data is actually a numerical value otherwise thatcomparison data will be replaced with a null value.In other words:when type=numneSKUdata=find_allis converted to:neSKUdata=I tested this several times and several different ways. I did find that you coulduse:neSKUdata=999999999and it would result in returning all my records in the correctly sorted orderINCLUDING sku 0.Why would WebDNA so obviously not include zero when doing a find_all search?Since we all assume that the common neSKUdata=find_all search actually returns allof our records. Perhaps SMI could change that find_all variable that is so oftenused in the WebMerchant with the variable find_all_but_zero. I tested this evenfurther on other web sites I have created by adding SKU 0 products and I ended upwith very bizarre results since none of my sites to date know how to handle a SKU 0record.I'd invite comments on this one. My curiosity is peeked if any guys have everbumped into this issue. Did SMI totally overlook this?For me this turned out to be more of a feature than a bug. I was actually lookingfor a way to create a hidden record. It's strange that I found a built in hiddenrecord so quickly! :-)Matthew A PerosiPsi Prime, Inc.nj-singles.comijo.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This is not a question, rather a posting of something I spent 2 hours on today.I thought the list would find it interesting. I'm using RedHat 7.2 with 4.5.1I'm working on a project here and I was thinking to have a database recordwith a SKU of Zero (0). In 4 years I never before thought of using SKU 0, butI have my crazy reasons this time.To my surprise, when using a search such as the following:[search db=admins.db&SKUsort=1&SKUtype=num&SKUsdir=as&neSKUdata=find_all]I am returned with all my records in the correctly sorted order EXCEPT sku 0.I did some digging in the archives and found out that when using type=num you needto be careful that your comparison data is actually a numerical value otherwise thatcomparison data will be replaced with a null value.In other words:when type=numneSKUdata=find_allis converted to:neSKUdata=I tested this several times and several different ways. I did find that you coulduse:neSKUdata=999999999and it would result in returning all my records in the correctly sorted orderINCLUDING sku 0.Why would WebDNA so obviously not include zero when doing a find_all search?Since we all assume that the common neSKUdata=find_all search actually returns allof our records. Perhaps SMI could change that find_all variable that is so oftenused in the WebMerchant with the variable find_all_but_zero. I tested this evenfurther on other web sites I have created by adding SKU 0 products and I ended upwith very bizarre results since none of my sites to date know how to handle a SKU 0record.I'd invite comments on this one. My curiosity is peeked if any guys have everbumped into this issue. Did SMI totally overlook this?For me this turned out to be more of a feature than a bug. I was actually lookingfor a way to create a hidden record. It's strange that I found a built in hiddenrecord so quickly! :-)Matthew A PerosiPsi Prime, Inc.nj-singles.comijo.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Matthew A Perosi
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:
2nd WebCatalog2 Feature Request (1996)
Bug alert! (1997)
WebCatalog on Windows 98 (2000)
emailer and bad addresses (1997)
WebCat Code and WebStar Search? (2000)
[WebDNA] decrypt appears to be hosed (2008)
Further tests with the infamous shipCost (1997)
Passing radio check box value to itself... (2000)
3.0.8 PDF Manual? Do YOU have it? :) (2000)
Shipcost formula (2004)
Sendmail strangie (2002)
Keep away (1997)
RE: Loss in form (1998)
Parameter Problem (1998)
price on detail, but not shoppingcart (1997)
UPS Rates (2006)
WebCat2 Append problem (B14Macacgi) (1997)
RE: WebCat: Access denied, but why? (1997)
Nested search (1997)
HTML Editors (1997)