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
If SQL statement character count exceeds 0xffffff - 5, EXEC fails with "Broken pipe" error. MySQL specification says large statements should be split into multiple packets. I did not test large/multi-packet response.
TEST code manufactures large string then truncates to 0xfffff8 then attempts exec operation
print("large packet test")
var largeString = "abcd1234"
while largeString.characters.count < 0xfffff0 { largeString += largeString }
let index = largeString.index(largeString.startIndex, offsetBy: 0xfffff8)
largeString = largeString.substring(to: index)
print(largeString.characters.count)
try con.exec("select '\(largeString)'")
print("END large packet test END")
STDOUT...
Hello, World!
large packet test
16777208
writeFailed("Broken pipe")
The text was updated successfully, but these errors were encountered:
If SQL statement character count exceeds 0xffffff - 5, EXEC fails with "Broken pipe" error. MySQL specification says large statements should be split into multiple packets. I did not test large/multi-packet response.
TEST code manufactures large string then truncates to 0xfffff8 then attempts exec operation
STDOUT...
The text was updated successfully, but these errors were encountered: