equal
deleted
inserted
replaced
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 } |