-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When first value of select is empty, decoder assumes it is ok packet (like eof) for various cases the fix is to check the state of the query, if this is the middle of query treat it as query processing and not ok packet
- Loading branch information
Showing
3 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
mysql-async/src/test/java/com/github/jasync/sql/db/mysql/QueryMoreSpec.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.github.jasync.sql.db.mysql | ||
|
||
import org.junit.Test | ||
|
||
class QueryMoreSpec : ConnectionHelper() { | ||
|
||
|
||
|
||
|
||
@Test | ||
fun `"connection" should "be able to select with empty value" `() { | ||
withConnection { connection -> | ||
executeQuery(connection, "select '' as x,'1' as y ") | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters