You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2015/03/17 19:00:02 UTC

[2/2] phoenix git commit: PHOENIX-1723 PTinyint.isCoercibleTo fails to test -1 with type PTinyint (Shuxiong Ye)

PHOENIX-1723 PTinyint.isCoercibleTo fails to test -1 with type PTinyint (Shuxiong Ye)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/5b453e39
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/5b453e39
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/5b453e39

Branch: refs/heads/3.0
Commit: 5b453e39b49b6c4096da8ce41a58db2e40571031
Parents: 6794129
Author: James Taylor <jt...@salesforce.com>
Authored: Tue Mar 17 10:59:51 2015 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Tue Mar 17 10:59:51 2015 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/phoenix/schema/PDataTypeTest.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/5b453e39/phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java b/phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java
index 15377d5..e33dc1b 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeTest.java
@@ -460,6 +460,8 @@ public class PDataTypeTest {
         Object doubleObj = PDataType.TINYINT.toObject(doubleValue, PDataType.DOUBLE);
         assertTrue(doubleObj instanceof Byte);
         assertEquals(100, ((Byte)doubleObj).byteValue());
+        
+        assertTrue(PDataType.TINYINT.isCoercibleTo(PDataType.TINYINT, (byte) -1));
     }
     
     @Test