Re: CART question

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59994
interpreted = N
texte = Thanks to everyone for their advice. John, I won't go down that road, then. And Sal, it IS for a member ID, so sequential won't work. A [random] string or nums.db are excellent alternatives. With appreciation, ----- Patrick Junkroski http://www.vsm.net On Nov 11, 2004, at 5:00 AM, WebDNA Talk wrote: > The cart is a unique _character string_ that is typically 15 > characters long (it used to be shorter before we entered the last > power of two seconds) but can be longer. It is based on the number of > seconds since the Unix Epoch, plus a uniquifier sequence, so that no > matter how many carts are assigned in a given second, all carts are > supposed to be unique (up to the granularity of the unique portion). > > Consequently, you should never: > > a) treat a cart as a number (it's not and only sorts properly as a > variable length string and it will in fact overflow most number > fields); > > b) truncate the cart value for some other purpose. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 ------------------------------------------------------------- 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:

    
  1. Re: CART question ( Donovan Brooke 2004)
  2. Re: CART question ( Brian Fries 2004)
  3. Re: CART question ( devaulw@onebox.com 2004)
  4. Re: CART question ( Patrick J. 2004)
  5. Re: CART question ( Donovan Brooke 2004)
  6. Re: CART question ( John Peacock 2004)
  7. Re: CART question ( Stuart Tremain 2004)
  8. Re: CART question ( "Sal D'Anna" 2004)
  9. Re: CART question ( 2004)
  10. CART question ( Patrick J. 2004)
  11. Re: More Shopping Cart Questions/Problems (Brian Boegershausen 2000)
  12. More Shopping Cart Questions/Problems (Brady J. Horenstein 2000)
  13. Re: Cart Question: The Epic Saga (Will Starck 1998)
  14. Re: Cart Question: The Epic Saga (Will Starck 1998)
  15. Re: Cart Question: The Epic Saga (PCS Technical Support 1998)
  16. Re: Cart Question (Kenneth Grome 1998)
  17. Re: Cart Question (PCS Technical Support 1998)
  18. Re: Cart Question (Will Starck 1998)
  19. Re: Cart Question (Kenneth Grome 1998)
  20. Re: Cart Question (Will Starck 1998)
  21. Re: Cart Question (PCS Technical Support 1998)
  22. Re: Cart Question (Bob Minor 1998)
  23. Re: Cart Question (Will Starck 1998)
  24. Re: Cart Question (Kenneth Grome 1998)
  25. Re: Cart Question (Bob Minor 1998)
  26. Re: Cart Question (Bob Minor 1998)
  27. Re: Cart Question (Will Starck 1998)
  28. Re: Cart Question (PCS Technical Support 1998)
  29. Re: Cart Question (Will Starck 1998)
  30. Re: Cart Question (charles kline 1998)
  31. Re: Cart Question (PCS Technical Support 1998)
  32. adding item to cart question (Chris Martin 1998)
  33. RE: Shopping Cart Questions (PCS Technical Support 1998)
  34. RE: Shopping Cart Questions (Pat McCormick 1998)
  35. RE: Shopping Cart Questions (josh 1998)
  36. Re: Shopping Cart Questions (Rob Marquardt 1998)
  37. Shopping Cart Questions (josh 1998)
  38. RE: Shopping Cart Questions (Pat McCormick 1998)
  39. Price lookup problem - was Re: Cart questions (Paul Winchester 1997)
  40. Re: Cart questions (Grant Hulbert 1997)
  41. Re: Cart questions (Grant Hulbert 1997)
  42. Re: Cart questions (Paul Winchester 1997)
  43. Re: Cart questions (Paul Winchester 1997)
  44. Re: Cart questions (Grant Hulbert 1997)
  45. three cart questions (Thomas Wedderburn-Bisshop 1997)
Thanks to everyone for their advice. John, I won't go down that road, then. And Sal, it IS for a member ID, so sequential won't work. A [random] string or nums.db are excellent alternatives. With appreciation, ----- Patrick Junkroski http://www.vsm.net On Nov 11, 2004, at 5:00 AM, WebDNA Talk wrote: > The cart is a unique _character string_ that is typically 15 > characters long (it used to be shorter before we entered the last > power of two seconds) but can be longer. It is based on the number of > seconds since the Unix Epoch, plus a uniquifier sequence, so that no > matter how many carts are assigned in a given second, all carts are > supposed to be unique (up to the granularity of the unique portion). > > Consequently, you should never: > > a) treat a cart as a number (it's not and only sorts properly as a > variable length string and it will in fact overflow most number > fields); > > b) truncate the cart value for some other purpose. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 ------------------------------------------------------------- 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/ Patrick J.

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:

Search Question (2000) [REFERRER] AND Truncation (1998) Plugin or CGI or both (1997) more [sendmail] woes.. (2000) contextual shownext (1998) WebCat2b12 CGI Mac - [shownext] problem (1997) webcat 2.1 (1997) Nested [SEARCH] and [REPLACE] problem. (1997) New Plug-in and Type 11 errors (1997) Credit card processing - UK (1997) OLD ORDERS (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Error, 101 a DNS problem ? (1997) emailer settings and control questions (1997) taxRate is fine but taxTotal isn't (1997) [WebDNA] Encode cookies ONLY via "method=Base64" (2008) MacAuthorize and WebMerchant (1997) OFF-TOPIC: Check www.godaddy.com for me ... (2003) RED QUESTION MARKS AGAIN (1999) GoLive CyberStudio 1.0.1 (1997)