Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fixed database name attribute in dbconfig.xml.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Nov 17, 2012
1 parent 3ac5922 commit 1602d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/dbconfig.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 13,15 @@
<jdbc-datasource>
<% case @database["type"] -%>
<% when "mysql" -%>
<url>jdbc:mysql://<%= @database["host"] %>:<%= @database["port"] %>/<%= @database["database"] %>?useUnicode=true&amp;characterEncoding=UTF8&amp;sessionVariables=storage_engine=InnoDB</url>
<url>jdbc:mysql://<%= @database["host"] %>:<%= @database["port"] %>/<%= @database["name"] %>?useUnicode=true&amp;characterEncoding=UTF8&amp;sessionVariables=storage_engine=InnoDB</url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<pool-test-while-idle>true</pool-test-while-idle>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<validation-query>select 1</validation-query>
<validation-query-timeout>3</validation-query-timeout>
<% when "postgresql" -%>
<url>jdbc:postgresql://<%= @database["host"] %>:<%= @database["port"] %>/<%= @database["database"] %></url>
<url>jdbc:postgresql://<%= @database["host"] %>:<%= @database["port"] %>/<%= @database["name"] %></url>
<driver-class>org.postgresql.Driver</driver-class>
<% end -%>
<username><%= @database["user"] %></username>
Expand Down

0 comments on commit 1602d88

Please sign in to comment.