fixed rebuild schema string every time
This commit is contained in:
@ -21,8 +21,8 @@ import org.postgresql.util.PSQLException
|
||||
val con_str = "jdbc:postgresql://localhost:5432/chatSql"
|
||||
val conn = DriverManager.getConnection(con_str)
|
||||
val stm = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)
|
||||
var schema = ""
|
||||
while (true) {
|
||||
var schema = ""
|
||||
// Get the DatabaseMetaData
|
||||
val metaData: DatabaseMetaData = conn.getMetaData
|
||||
|
||||
|
||||
Reference in New Issue
Block a user