-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
15 additions
and
80 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
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
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
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
54 changes: 0 additions & 54 deletions
54
src/main/kotlin/com/github/mgramin/sqlboot/sql/select/wrappers/PageWrapper.kt
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -50,10 +50,10 @@ class JdbcSelectQueryTest { | |
fun select() { | ||
val select = JdbcSelectQuery(this.dataSource!!, | ||
"""select * | ||
| from (select name as "n" | ||
| from (select name as "n" | ||
| , email as "mail" | ||
| from main_schema.users)""".trimMargin()) | ||
.select().toList() | ||
.execute(hashMapOf()).toList() | ||
assertEquals(select.toString(), | ||
"[{n=mkyong, [email protected]}, {n=alex, [email protected]}, {n=joel, [email protected]}]") | ||
} | ||
|
@@ -65,7 +65,6 @@ class JdbcSelectQueryTest { | |
| , email as email /* email */ | ||
| from main_schema.users""".trimMargin())) | ||
val metadata = selectQuery.columns() | ||
println(metadata) | ||
assertEquals("email", metadata["email"]) | ||
assertEquals("name", metadata["name"]) | ||
} | ||
|