database icon indicating copy to clipboard operation
database copied to clipboard

Feat: throw custom exception when index key is too large

Open kodumbeats opened this issue 4 years ago • 1 comments

This PR exposes the index key limit of each database adapter and throws a Size exception when necessary.

Testing Unit test has been added to catch this exception

Related PRs: https://github.com/appwrite/appwrite/issues/2596

kodumbeats avatar Jan 12 '22 21:01 kodumbeats

Blocked: Not sure what to do on this one - InnoDB happily accepts an index of length 3073 when the limit is supposed to be 3072.

We'll either need to estimate this limit or figure out exactly how it works. I don't think we want to convert strings to bytestreams just for this.

kodumbeats avatar Jan 12 '22 21:01 kodumbeats