Skip to content

Commit 2071a7b

Browse files
author
chengyitian
committed
AJ-853: add param check for 'usePython' and 'useKdb';
1 parent 5466f49 commit 2071a7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ else if (this.connTimeout_ == 0 && this.readTimeout_ > 0)
430430
}
431431

432432
private int generateRequestFlag(boolean clearSessionMemory){
433+
if (this.python_ && this.kdb_) {
434+
throw new IllegalArgumentException("The param 'usePython' and 'useKdb' cannot be set simultaneously.");
435+
}
436+
433437
int flag = 0;
434438
if (this.ifUrgent_)
435439
flag += 1;

0 commit comments

Comments
 (0)