mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-18 07:34:19 +01:00
Initialize column metadata on statement creation
This commit is contained in:
@@ -24,7 +24,9 @@ public final class JDBC4Connection implements Connection {
|
||||
}
|
||||
|
||||
public TursoStatement prepare(String sql) throws SQLException {
|
||||
return connection.prepare(sql);
|
||||
final TursoStatement statement = connection.prepare(sql);
|
||||
statement.initializeColumnMetadata();
|
||||
return statement;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -34,7 +34,6 @@ public final class JDBC4PreparedStatement extends JDBC4Statement implements Prep
|
||||
super(connection);
|
||||
this.sql = sql;
|
||||
this.statement = connection.prepare(sql);
|
||||
this.statement.initializeColumnMetadata();
|
||||
this.resultSet = new JDBC4ResultSet(this.statement.getResultSet());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user