Skip to content

Commit ca63c63

Browse files
committed
[DO NOT MERGE] some debug for JDBC
1 parent 185c62c commit ca63c63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cubejs-jdbc-driver/src/JDBCDriver.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,18 @@ export class JDBCDriver extends BaseDriver {
137137

138138
this.pool = genericPool.createPool({
139139
create: async () => {
140-
await initMvn(await this.getCustomClassPath());
140+
console.log("before await this.getCustomClassPath()");
141+
const ccp = await this.getCustomClassPath();
142+
console.log("before await initMvn(ccp)");
143+
await initMvn(ccp);
141144

142145
if (!this.jdbcProps) {
143146
/** @protected */
144147
this.jdbcProps = this.getJdbcProperties();
145148
}
146149

147150
const getConnection = promisify(DriverManager.getConnection.bind(DriverManager));
151+
console.log("new Connection this.config.url", this.config.url);
148152
return new Connection(await getConnection(this.config.url, this.jdbcProps));
149153
},
150154
// @ts-expect-error Promise<Function> vs Promise<void>

0 commit comments

Comments
 (0)