• Overflow in calcQuota possible

    By Dschingis Khan 1 decade ago

    I explored a customers environment using this function. In databases showing this message the db.sizequota was set to (-1024) what means someone has set the quote to -1 MB using the admin client. May be it was made to disable a quota from someone who didn't know better ;-) The admin client then just displays there is no quota set. In my case 'percent%' would grow to "-133700" and so no longer integer…

    I wonder why you are able to set such a quota, less than "0".

    Just add an error handler describing the error or change the type of percent?