Skip to content

Commit 198576a

Browse files
committed
if num params and columns == 0, accept just ok packet
1 parent 1386b1c commit 198576a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MySQL/Connection/MySQLConnection+Query.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extension MySQLConnection {
4242
switch message {
4343
case .comStmtPrepareOK(let _ok):
4444
ok = _ok
45-
return false
45+
return _ok.numParams == 0 && _ok.numColumns == 0
4646
case .columnDefinition41(let col):
4747
let ok = ok!
4848
columns.append(col)

0 commit comments

Comments
 (0)