Eng 7086 sql text length limitation

Yes. Longer than 2^18 should also be invalid. The best way seems to be detect the SQL length before we serialize the buff. It seems that we have very strict protocol for the buffer on how many bytes used for length, type and etc.

I tried the SQL statement longer than 2^16 less than 2^17, we throws a RuntimeException when we deserialize the parameters from the ByteBuff.