---
title: "Bugfix: A rule code fits its column"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:bugfix-1791796825@main"
source: "Changelog/1.0.0/Bugfix-1791796825-ARuleCodeFitsItsColumn.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Bugfix: A rule code fits its column {#bugfix-1791796825}

## Description {#description}

A country package could add a violation with a rule code longer than the 20 characters a stored violation holds.
SQLite accepted it, but PostgreSQL and MariaDB refused to store the day, so its recalculation failed.
`WorkingDayEvaluated::addViolation()` now refuses such a code at once.

## Impact {#impact}

A country package names its rules with at most 20 characters; a longer code throws
`InvalidDayViolationException` while its tests run.
