diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-10-27 23:19:21 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-10-27 23:19:21 +0000 |
| commit | 7b236ddc47e2e4721907dde7db8f13dac9c02683 (patch) | |
| tree | 8e1c4d8f9d2479e7514b5a395808323ead032395 /qpid/cpp/src | |
| parent | 39fbdc245252c44c145d0c53eaf68bf08b0d0788 (diff) | |
| download | qpid-python-7b236ddc47e2e4721907dde7db8f13dac9c02683.tar.gz | |
Set up COM initialization before trying to database connection in earlyInitialize.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@830397 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp b/qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp index 5872dbc2e4..cb92e2fd80 100644 --- a/qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp +++ b/qpid/cpp/src/qpid/store/ms-sql/MSSqlProvider.cpp @@ -344,6 +344,7 @@ MSSqlProvider::earlyInitialize(Plugin::Target &target) // be sure to close the database connection before return to avoid // leaving a connection up that will not be used. try { + initState(); // This initializes COM std::auto_ptr<DatabaseConnection> db(new DatabaseConnection()); db->open(options.connectString, ""); _ConnectionPtr conn(*db); |
