File tree Expand file tree Collapse file tree 2 files changed +1
-63
lines changed
src/com/oltpbenchmark/api Expand file tree Collapse file tree 2 files changed +1
-63
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -132,17 +132,11 @@ public final Connection makeConnection() throws SQLException {
132132 }
133133
134134 int r = dataSourceCounter .getAndIncrement () % workConf .getNodes ().size ();
135- String url_db = "" ;
136- if (workConf .getDBName ()=="yugabyte" )
137- url_db = "yugabytedb" ;
138- else if (workConf .getDBName ()=="postgres" )
139- url_db = "postgresql" ;
140135 String connectStr ;
141136 if (workConf .getJdbcURL () != null && workConf .getJdbcURL ().length ()>0 ) {
142137 connectStr =workConf .getJdbcURL ();
143138 } else {
144- connectStr = String .format ("jdbc:%s://%s:%d/%s" ,
145- workConf .getDBName (),
139+ connectStr = String .format ("jdbc:yugabytedb://%s:%d/%s" ,
146140 workConf .getNodes ().get (r ),
147141 workConf .getPort (),
148142 workConf .getDBName ());
You can’t perform that action at this time.
0 commit comments