You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jh...@apache.org on 2014/07/03 06:56:16 UTC
[2/2] git commit: [OPTIQ-331] Precision/Scale compatibility checks
should always succeed for 'ANY' type
[OPTIQ-331] Precision/Scale compatibility checks should always succeed for 'ANY' type
Project: http://git-wip-us.apache.org/repos/asf/incubator-optiq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-optiq/commit/c34c1448
Tree: http://git-wip-us.apache.org/repos/asf/incubator-optiq/tree/c34c1448
Diff: http://git-wip-us.apache.org/repos/asf/incubator-optiq/diff/c34c1448
Branch: refs/heads/master
Commit: c34c144874cb9acbbafa8ff51f35a4f31cadee98
Parents: e5188ec
Author: Mehant Baid <me...@gmail.com>
Authored: Wed Jul 2 20:05:12 2014 -0700
Committer: Julian Hyde <ju...@gmail.com>
Committed: Wed Jul 2 21:38:44 2014 -0700
----------------------------------------------------------------------
core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-optiq/blob/c34c1448/core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java b/core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java
index ae98a59..efff330 100644
--- a/core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java
+++ b/core/src/main/java/org/eigenbase/sql/type/SqlTypeName.java
@@ -72,7 +72,8 @@ public enum SqlTypeName {
VARBINARY(PrecScale.NO_NO | PrecScale.YES_NO, false, Types.VARBINARY,
SqlTypeFamily.BINARY),
NULL(PrecScale.NO_NO, true, Types.NULL, SqlTypeFamily.NULL),
- ANY(PrecScale.NO_NO, true, Types.JAVA_OBJECT, SqlTypeFamily.ANY),
+ ANY(PrecScale.NO_NO | PrecScale.YES_NO | PrecScale.YES_YES, true,
+ Types.JAVA_OBJECT, SqlTypeFamily.ANY),
SYMBOL(PrecScale.NO_NO, true, Types.OTHER, null),
MULTISET(PrecScale.NO_NO, false, Types.ARRAY, SqlTypeFamily.MULTISET),
ARRAY(PrecScale.NO_NO, false, Types.ARRAY, SqlTypeFamily.ARRAY),