Github user sureshsubbiah commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/882#discussion_r93642938
  
    --- Diff: core/sql/src/main/java/org/trafodion/sql/udr/TupleInfo.java ---
    @@ -1079,19 +1230,48 @@ else if (t.getByteLength() == 8)
                 row_.putLong(t.getDataOffset(), val);
                 break;
     
    +        case TINYINT_UNSIGNED:
    +            if (val < 0 || val > Byte.MAX_VALUE)
    +                if (val > (2 * Byte.MAX_VALUE + 1))
    +                    throw new UDRException(
    +                        38900,
    +                        "Overflow/underflow when assigning to TINYINT 
UNSIGNED type");
    +                else
    --- End diff --
    
    Will this handle underflow correctly? If val < 0 is an exception supposed 
to be thrown?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to