Fix #1897 incorrect error message when query variable exceeds maxlength

This commit is contained in:
Kijin Sung 2022-03-11 01:43:26 +09:00
parent 9c04818cc2
commit 237134f64d

View file

@ -449,7 +449,7 @@ class VariableBase
}
if (isset($this->maxlength) && $this->maxlength > 0 && $length > $this->maxlength)
{
throw new \Rhymix\Framework\Exceptions\QueryError('Variable ' . $this->var . ' for column ' . $column . ' must contain no more than ' . $this->minlength . ' characters');
throw new \Rhymix\Framework\Exceptions\QueryError('Variable ' . $this->var . ' for column ' . $column . ' must contain no more than ' . $this->maxlength . ' characters');
}
}