You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each adapter must implement the getIntLimit() method, but it isn't enforced due to how we interpret $size for integer attributes.
In the case of strings, $size is pretty obvious - the length of the string. However, for integers (and before BIGINT), we just set $size = 0, so this check in createAttribute() would never actually prevent PDO from throwing the database exception:
I think there is another Issue here the size is the length of the coumn , like size 6 = 100000 digits for unsigned value.
while getIntLimit refferst to the value of he int not the length...
Each adapter must implement the
getIntLimit()
method, but it isn't enforced due to how we interpret$size
for integer attributes.In the case of strings,
$size
is pretty obvious - the length of the string. However, for integers (and before BIGINT), we just set$size = 0
, so this check increateAttribute()
would never actually prevent PDO from throwing the database exception:database/src/Database/Database.php
Lines 433 to 437 in af512b7
Options to enforce int limit:
getIntLimit()
as a filter when creating/updating documentsUtopia\Database
exceptionThe text was updated successfully, but these errors were encountered: