Skip to content

Commit f08b490

Browse files
committed
update table size restrictions
1 parent 59771bb commit f08b490

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/SqlServer/Types/Table.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ columnConstraintsSatisfied xs = length (filter isTimeStamp xs) <= 1 &&
4747
totalColumnSizeBytes <= 8060 &&
4848
length (filter oneGuidCol xs) <= 1
4949
where
50-
totalColumnSizeBits = (length xs * 8) 32 + sum (map (storageSize . dataType) xs)
50+
totalColumnSizeBits = (length xs * 8) + 32 + sum (map (storageSize . dataType) xs)
5151
totalColumnSizeBytes = totalColumnSizeBits `div` 8 + (if totalColumnSizeBits `rem` 8 /= 0 then 8 else 0)
5252
isTimeStamp c = case dataType c of
5353
(Timestamp _) -> True

0 commit comments

Comments
 (0)