Add charset=utf8 to DB2 URI

Change-Id: I4535290d2e69c966dc65eb340cd0ba17af9883e6
This commit is contained in:
Chen Zhiwei 2014-01-16 20:33:36 -05:00
parent 5e7592dc18
commit 9b4958fbf9
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ License and Author
| **Copyright** | Copyright (c) 2013, Opscode, Inc. |
| **Copyright** | Copyright (c) 2013, Craig Tracey |
| **Copyright** | Copyright (c) 2013, SUSE Linux GmbH |
| **Copyright** | Copyright (c) 2013, IBM, Corp. |
| **Copyright** | Copyright (c) 2013-2014, IBM, Corp. |
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -77,7 +77,7 @@ module ::Openstack
path = info['path']
result = "sqlite:///#{path}"
when "db2"
result = "ibm_db_sa://#{user}:#{pass}@#{host}:#{port}/#{name}"
result = "ibm_db_sa://#{user}:#{pass}@#{host}:#{port}/#{name}?charset=utf8"
end
end
end