diff --git a/docs/changes.txt b/docs/changes.txt index 462bec058a..33f4128f38 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -84,6 +84,7 @@ All: Previously, only the buffer would be returned, even if more data was requested. - Added wxPowerEvent (currently MSW-only). - Make wx-config compatible with Bourne shells. +- Fixed wxDb::Open(wxDbConnectInf) when using connection string (Hellwolf Misty) All (GUI): diff --git a/src/common/db.cpp b/src/common/db.cpp index b1640ae1dd..d7843f4f39 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -920,7 +920,7 @@ bool wxDb::Open(wxDbConnectInf *dbConnectInf, bool failOnDataTypeUnsupported) // Use the connection string if one is present if (dbConnectInf->UseConnectionStr()) - return Open(GetConnectionInStr(), failOnDataTypeUnsupported); + return Open(dbConnectInf->GetConnectionStr(), failOnDataTypeUnsupported); else return Open(dbConnectInf->GetDsn(), dbConnectInf->GetUserID(), dbConnectInf->GetPassword(), failOnDataTypeUnsupported);