diff -r 15018f1726c7 -r 3eacc0623088 persistentstorage/sql/SRC/Client/SqlDbSession.cpp --- a/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Fri Mar 19 10:00:55 2010 +0200 +++ b/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Fri Apr 16 16:49:27 2010 +0300 @@ -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) {