Skip to content
Snippets Groups Projects
Commit 5042d915 authored by npedot's avatar npedot
Browse files

print jdbc resultset usign column label for AS query

parent fc44e099
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,8 @@ object JdbcPrinter {
while( resultSet.next()) {
result += "-----------------------------------------------------"
for (i in 1..columnCount) {
//if (i >1 ) print(",")
//print("${metaData.getColumnName(i)} ${resultSet.getString(i)} ")
result += "${metaData.getColumnName(i)}: ${resultSet.getString(i)}" + System.lineSeparator()
result += "${metaData.getColumnLabel(i)}: ${resultSet.getString(i)}" + System.lineSeparator()
}
//println()
}
return result
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment