lib/gooddata/models/model.rb in gooddata-0.6.53 vs lib/gooddata/models/model.rb in gooddata-0.6.54
- old
+ new
@@ -84,10 +84,10 @@
'GDC.time.day_iso', # dd-MM-yyyy
'GDC.time.day_us_long', # EEE, MMM d, yyyy
'GDC.time.day_us_noleading', # M/d/yy
]
- GD_DATA_TYPES = ['BIGINT', 'DOUBLE', 'INTEGER', 'INT', /^VARCHAR\(\d{1,4}\)$/i, /^DECIMAL\(\d{1,3},\s*\d{1,3}\)$/i]
+ GD_DATA_TYPES = ['BIGINT', 'DOUBLE', 'INTEGER', 'INT', /^VARCHAR\(([1-9]\d{0,3}|10000)\)$/i, /^DECIMAL\(\d{1,3},\s*\d{1,3}\)$/i]
DEFAULT_FACT_DATATYPE = 'DECIMAL(12,2)'
DEFAULT_ATTRIBUTE_DATATYPE = 'VARCHAR(128)'
DEFAULT_TYPE = 'GDC.text'