hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 0x0FFF <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: [HAWQ-19] Money type overflow fixed b...
Date Tue, 02 Feb 2016 16:01:22 GMT
GitHub user 0x0FFF opened a pull request:

    https://github.com/apache/incubator-hawq/pull/323

    [HAWQ-19] Money type overflow fixed by back porting int64 support from Postgres commit
74a4019

    This commit fixes the issue [HAWQ-19](https://issues.apache.org/jira/browse/HAWQ-19) "Money
type overflow" by back porting commit [74a4019](https://github.com/postgres/postgres/commit/74a40190aabd27b052ea7a63e93f7ed47743755d#diff-7ddd78dd264f8cf2a62cf572baf90b84)
to HAWQ. Changes internal representation of "money" datatype, input function, cash_words function,
adds function to multiply/divide cash by int8. Also changes pg_type to accommodate new internal
representation
    
    Before this commit:
    ```
    test=# select '$30000000'::money;
          money      
    -----------------
     -$12,949,672.96
    (1 row)
    ```
    After this commit:
    ```
    test=# select '$30000000'::money;
         money      
    ----------------
     $30,000,000.00
    (1 row)
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/0x0FFF/incubator-hawq HAWQ-19

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hawq/pull/323.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #323
    
----
commit d69b81699bd5cd90d7adb83429b033692f6823a7
Author: Alexey Grishchenko <agrishchenko@pivotal.io>
Date:   2016-02-02T15:24:16Z

    [HAWQ-19] Money type overflow fixed by back porting int64 support from Postgres commit
74a4019

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message