diff -r 5ffdb8f2067f -r fa9941cf3867 persistentstorage/sql/SRC/Client/SqlDbSession.cpp --- a/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Sat Feb 20 00:33:55 2010 +0200 +++ b/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Fri Mar 12 15:51:02 2010 +0200 @@ -303,7 +303,11 @@ */ TInt RSqlDbSession::Connect(TSqlSrvFunction aFunction, const TDesC& aDbFileName, const TDesC8& aSecurityPolicyData, const TDesC8* aConfig) { +#ifdef SYSLIBS_TEST + const TInt KDefaultMsgBufLen = 4; +#else const TInt KDefaultMsgBufLen = 128; +#endif iLastErrorMessage = HBufC::New(KDefaultMsgBufLen); if(!iLastErrorMessage) {