But isn't that if the table is empty or undef that would raise an exception, because it would actually generate grant "priv" ON TO test1@localhost; ? Base on the type definition the table parameter can be easily defined undef.