persistentstorage/sql/SRC/Client/SqlStmtSession.h
branchRCL_3
changeset 11 211563e4b919
parent 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
10:31a8f755b7fe 11:211563e4b919
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
       
    12 // NTT DOCOMO, INC - Fix for Bug 1915 "SQL server panics when using long column type strings"
    12 //
    13 //
    13 // Description:
    14 // Description:
    14 //
    15 //
    15 
    16 
    16 #ifndef __SQLSTMTSESSION_H__
    17 #ifndef __SQLSTMTSESSION_H__
    95 	inline TInt ReadColumnValue(TInt aColumnIndex, TDes8& aBuf);
    96 	inline TInt ReadColumnValue(TInt aColumnIndex, TDes8& aBuf);
    96 	
    97 	
    97 	inline MStreamBuf* ColumnSourceL(TInt aColumnIndex);
    98 	inline MStreamBuf* ColumnSourceL(TInt aColumnIndex);
    98 	inline MStreamBuf* ParamSinkL(TSqlSrvFunction aFunction, TInt aParamIndex);
    99 	inline MStreamBuf* ParamSinkL(TSqlSrvFunction aFunction, TInt aParamIndex);
    99 
   100 
   100 	HBufC* GetDeclColumnTypesL(TInt aColumnCount);
   101 	TInt GetDeclColumnTypes(RSqlBufFlat& aDeclColumnTypeBuf);	
   101 		
   102 	
   102 private:
   103 private:
   103 	TInt DoBindNext(TSqlSrvFunction aFunction, TIpcArgs& aIpcArgs, RSqlBufFlat& aColumnBuf);
   104 	TInt DoBindNext(TSqlSrvFunction aFunction, TIpcArgs& aIpcArgs, RSqlBufFlat& aColumnBuf);
   104 	TInt Retry(RSqlBufFlat& aBufFlat, TInt aSize, TSqlBufFlatType aWhat);
   105 	TInt Retry(RSqlBufFlat& aBufFlat, TInt aSize, TSqlBufFlatType aWhat);
   105 	inline RSqlDbSession& DbSession() const;
   106 	inline RSqlDbSession& DbSession() const;
   106 
   107