persistentstorage/sql/SRC/Client/SqlDbSession.cpp
branchRCL_3
changeset 8 fa9941cf3867
parent 0 08ec8eefde2f
child 11 211563e4b919
equal deleted inserted replaced
6:5ffdb8f2067f 8:fa9941cf3867
   301  - Arg 2: [out]  security policies buffer length if aFunction is ESqlSrvDbCreateSecure
   301  - Arg 2: [out]  security policies buffer length if aFunction is ESqlSrvDbCreateSecure
   302  - Arg 3: [out]  security policies buffer if aFunction is ESqlSrvDbCreateSecure
   302  - Arg 3: [out]  security policies buffer if aFunction is ESqlSrvDbCreateSecure
   303 */
   303 */
   304 TInt RSqlDbSession::Connect(TSqlSrvFunction aFunction, const TDesC& aDbFileName, const TDesC8& aSecurityPolicyData, const TDesC8* aConfig)
   304 TInt RSqlDbSession::Connect(TSqlSrvFunction aFunction, const TDesC& aDbFileName, const TDesC8& aSecurityPolicyData, const TDesC8* aConfig)
   305 	{
   305 	{
       
   306 #ifdef SYSLIBS_TEST
       
   307     const TInt KDefaultMsgBufLen = 4;
       
   308 #else	
   306 	const TInt KDefaultMsgBufLen = 128;
   309 	const TInt KDefaultMsgBufLen = 128;
       
   310 #endif	
   307 	iLastErrorMessage = HBufC::New(KDefaultMsgBufLen);
   311 	iLastErrorMessage = HBufC::New(KDefaultMsgBufLen);
   308 	if(!iLastErrorMessage)
   312 	if(!iLastErrorMessage)
   309 		{
   313 		{
   310 		return KErrNoMemory;	
   314 		return KErrNoMemory;	
   311 		}
   315 		}