persistentstorage/sql/TEST/t_sqlconfigfile.cpp
branchRCL_3
changeset 12 6b6fd149daa2
parent 0 08ec8eefde2f
equal deleted inserted replaced
11:211563e4b919 12:6b6fd149daa2
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
   728 	err = TheDb.Exec(_L("CREATE TABLE A(Id INTEGER,Name TEXT)"));
   728 	err = TheDb.Exec(_L("CREATE TABLE A(Id INTEGER,Name TEXT)"));
   729 	TEST(err >= 0);
   729 	TEST(err >= 0);
   730 	TheDb.Close();
   730 	TheDb.Close();
   731 	err = -1;
   731 	err = -1;
   732 	const TInt KTestRecCnt = 100;
   732 	const TInt KTestRecCnt = 100;
   733 	for(TInt cnt=1;err<KErrNone;++cnt)
   733 	for(TInt cnt=0;err<KErrNone;++cnt)
   734 		{		
   734 		{		
   735 		TheTest.Printf(_L("%d \r"), cnt);		
   735 		TheTest.Printf(_L("%d \r"), cnt);		
   736 		err = TheDb.Open(KTestDbName);
   736 		err = TheDb.Open(KTestDbName);
   737 		TEST2(err, KErrNone);
   737 		TEST2(err, KErrNone);
   738 		TInt recCntBegin = 0;
   738 		TInt recCntBegin = 0;