Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Quote Originally Posted by lat9 View Post
    Nice one, @mc12345678! Do you think that, perhaps, that field should be changed from a decimal format to simply float, given the "variety" of exchange rates?
    That's a little hard to say at the moment without further review considering the precision/rounding issues with float. It seems primarily that if decimal is used that a sufficiently large bound be placed to handle the largest possible/expected conversion rate or a method to expand it if the need arises. It certainly is worth looking into if the change to 5,2 is successful.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #22
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Quote Originally Posted by mc12345678 View Post
    That's a little hard to say at the moment without further review considering the precision/rounding issues with float. It seems primarily that if decimal is used that a sufficiently large bound be placed to handle the largest possible/expected conversion rate or a method to expand it if the need arises. It certainly is worth looking into if the change to 5,2 is successful.
    Noting that chopping the number of significant digits to 2 will also produce rounding issues.

  3. #23
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Quote Originally Posted by lat9 View Post
    Noting that chopping the number of significant digits to 2 will also produce rounding issues.
    If I remember correctly from looking over the exchange rate code set, the chopping occurs before storage and the database just sustains that cut-off number accurately. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #24
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Quote Originally Posted by mc12345678 View Post
    If I remember correctly from looking over the exchange rate code set, the chopping occurs before storage and the database just sustains that cut-off number accurately. :)
    That's not my point ... did you look at the number of significant digits in that exchange rate (119.34816139488) identified in post #14? While that value's not (currently) used for calculations, I was thinking that the more accurate a value stored, the better.

  5. #25
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Quote Originally Posted by lat9 View Post
    That's not my point ... did you look at the number of significant digits in that exchange rate (119.34816139488) identified in post #14? While that value's not (currently) used for calculations, I was thinking that the more accurate a value stored, the better.
    I *do* agree that accuracy in such a number (exchange_rate) should be maintained to support its financial impact.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #26
    Join Date
    May 2013
    Location
    Tokyo, Japan
    Posts
    18
    Plugin Contributions
    0

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Guys, I changed the data-type of "exchnage_rate" from decimal(4,2) to decimal(5,2). I will come back to you with the results of impact on my next order.
    I do not receive any more error for the "payment_type" since its data-type was changed to varchar(64). Thank you, lat9.

    Name:  2019-05-05 5.01.33.jpg
Views: 50
Size:  100.4 KB

  7. #27
    Join Date
    May 2013
    Location
    Tokyo, Japan
    Posts
    18
    Plugin Contributions
    0

    Default Re: Problem of checking out the cart; PHP error: 1264: Out of range value for column

    Dear zen-experts,

    Now everything seems alright!!!

    I received 3 orders since I changed the data-types of "payment_type" and "exchange_rate" and it seems that the customer could check out without a problem.

    I really want to say THANK YOU for all of them who help me out this.

    Best regards,

    JFigure

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. 1264 Out of range value for column 'products_id' at row 1 - after importing products
    By suntower in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Nov 2010, 12:23 AM
  2. 1264 Out of range value adjusted for column '2co_order_id' at row 1
    By tweakservers in forum Addon Payment Modules
    Replies: 0
    Last Post: 15 Sep 2008, 05:59 PM
  3. ERROR 1264 Out of range value
    By sharemind in forum Installing on a Windows Server
    Replies: 3
    Last Post: 25 May 2006, 02:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR