瀏覽代碼

Merge pull request #6156 from ghalliday/issue11798

HPCC-11798 Allow MAXLENGTH on BUILD (forward compatibility)

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 年之前
父節點
當前提交
d546deb254
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      ecl/hql/hqlgram.y

+ 8 - 0
ecl/hql/hqlgram.y

@@ -2868,6 +2868,10 @@ buildFlag
                         {
                             $$.setExpr(createAttribute(dedupAtom), $1);
                         }
+    | MAXLENGTH
+                        {
+                            $$.setExpr(createExprAttribute(maxLengthAtom), $1);
+                        }
     ;
 
 localAttribute
@@ -3066,6 +3070,10 @@ indexFlag
                             $$.setPosition($1);
                         }
     | UNORDERED         {   $$.setExpr(createAttribute(unorderedAtom)); $$.setPosition($1); }
+    | MAXLENGTH
+                        {
+                            $$.setExpr(createExprAttribute(maxLengthAtom), $1);
+                        }
     | commonAttribute
     ;