phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestay...@apache.org
Subject [2/2] phoenix git commit: PHOENIX-1723 PTinyint.isCoercibleTo fails to test -1 with type PTinyint (Shuxiong Ye)
Date Tue, 17 Mar 2015 18:00:02 GMT
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 <jtaylor@salesforce.com>
Authored: Tue Mar 17 10:59:51 2015 -0700
Committer: James Taylor <jtaylor@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


Mime
View raw message