-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
Environment
Darwin poseidon.local 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
Expected Behavior
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 +jit [darwin-x86_64]
irb(main):001:0> '%<adapter>s://%<host>s/%<database>s?user=%<user>s&password=%<password>s' % {:adapter=>"jdbc:postgresql", :host=>"TFB-database", :database=>"hello_world", :user=>"benchmarkdbuser", :password=>"benchmarkdbpass"}
=> "jdbc:postgresql://TFB-database/hello_world?user=benchmarkdbuser&password=benchmarkdbpass"
Actual Behavior
jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 +jit [darwin-x86_64]
irb(main):001:0> '%<adapter>s://%<host>s/%<database>s?user=%<user>s&password=%<password>s' % {:adapter=>"jdbc:postgresql", :host=>"TFB-database", :database=>"hello_world", :user=>"benchmarkdbuser", :password=>"benchmarkdbpass"}
ArgumentError: name<host> after <adapter>
from org/jruby/RubyString.java:1191:in `%'
from (irb):1:in `<eval>'
from org/jruby/RubyKernel.java:1000:in `eval'
from org/jruby/RubyKernel.java:1298:in `loop'
from org/jruby/RubyKernel.java:1120:in `catch'
from org/jruby/RubyKernel.java:1120:in `catch'
from /Users/mwp/.rbenv/versions/jruby-9.1.8.0/bin/irb:13:in `<main>'
Reactions are currently unavailable