@@ -38,37 +38,36 @@ func TestConnectionURL(t *testing.T) {
3838
3939 // Adding a host with port.
4040 c .Host = "localhost:1234"
41- assert .Equal (t , "host=localhost port=1234 sslmode=prefer statement_cache_capacity=0 " , c .String ())
41+ assert .Equal (t , "default_query_exec_mode=cache_describe host=localhost port=1234 sslmode=prefer" , c .String ())
4242
4343 // Adding a host.
4444 c .Host = "localhost"
45- assert .Equal (t , "host=localhost sslmode=prefer statement_cache_capacity=0 " , c .String ())
45+ assert .Equal (t , "default_query_exec_mode=cache_describe host=localhost sslmode=prefer" , c .String ())
4646
4747 // Adding a username.
4848 c .User = "Anakin"
49- assert .Equal (t , `host=localhost sslmode=prefer statement_cache_capacity=0 user=Anakin` , c .String ())
49+ assert .Equal (t , `default_query_exec_mode=cache_describe host=localhost sslmode=prefer user=Anakin` , c .String ())
5050
5151 // Adding a password with special characters.
5252 c .Password = "Some Sort of ' Password"
53- assert .Equal (t , `host=localhost password=Some\ Sort\ of\ \'\ Password sslmode=prefer statement_cache_capacity=0 user=Anakin` , c .String ())
53+ assert .Equal (t , `default_query_exec_mode=cache_describe host=localhost password=Some\ Sort\ of\ \'\ Password sslmode=prefer user=Anakin` , c .String ())
5454
5555 // Adding a port.
5656 c .Host = "localhost:1234"
57- assert .Equal (t , `host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=prefer statement_cache_capacity=0 user=Anakin` , c .String ())
57+ assert .Equal (t , `default_query_exec_mode=cache_describe host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=prefer user=Anakin` , c .String ())
5858
5959 // Adding a database.
6060 c .Database = "MyDatabase"
61- assert .Equal (t , `dbname=MyDatabase host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=prefer statement_cache_capacity=0 user=Anakin` , c .String ())
61+ assert .Equal (t , `dbname=MyDatabase default_query_exec_mode=cache_describe host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=prefer user=Anakin` , c .String ())
6262
6363 // Adding options.
6464 c .Options = map [string ]string {
6565 "sslmode" : "verify-full" ,
6666 }
67- assert .Equal (t , `dbname=MyDatabase host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=verify-full statement_cache_capacity=0 user=Anakin` , c .String ())
67+ assert .Equal (t , `dbname=MyDatabase default_query_exec_mode=cache_describe host=localhost password=Some\ Sort\ of\ \'\ Password port=1234 sslmode=verify-full user=Anakin` , c .String ())
6868}
6969
7070func TestParseConnectionURL (t * testing.T ) {
71-
7271 {
7372 s := "postgres://anakin:skywalker@localhost/jedis"
7473 u , err := ParseURL (s )
0 commit comments