Browse files

added locale option to the connection

  • Loading branch information...
1 parent 74d564b commit 6c7aff463e90ae1b4f1021abf06a72e1ebaaaf5d @eeng committed Dec 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mondrian/olap/connection.rb
View
1 lib/mondrian/olap/connection.rb
@@ -112,6 +112,7 @@ def connection_string
string = "jdbc:mondrian:Jdbc=#{quote_string(jdbc_uri)};JdbcDrivers=#{jdbc_driver};"
# by default use content checksum to reload schema when catalog has changed
string << "UseContentChecksum=true;" unless @params[:use_content_checksum] == false
+ string << "Locale=#{@params[:locale]};" if @params[:locale]
if role = @params[:role] || @params[:roles]
roles = Array(role).map{|r| r && r.to_s.gsub(',', ',,')}.compact
string << "Role=#{quote_string(roles.join(','))};" unless roles.empty?

0 comments on commit 6c7aff4

Please sign in to comment.