persistentstorage/sql/TEST/t_sqlperformance.cpp
branchRCL_3
changeset 42 28839de615b4
parent 21 fcc16690f446
child 55 44f437012c90
child 56 839ea9debada
--- a/persistentstorage/sql/TEST/t_sqlperformance.cpp	Mon Jun 21 17:37:53 2010 +0300
+++ b/persistentstorage/sql/TEST/t_sqlperformance.cpp	Thu Aug 19 11:36:21 2010 +0300
@@ -1174,12 +1174,10 @@
 	
 void SelectLikeQueryPerfTest()
 {
-	_LIT(KTestDatabase1, "c:\\test\\t_sqldefect_1.db");
-	
 	_LIT8(KServerConfigString1, "encoding =  \"UTF-8\"");
 	//create a sql db file
-	(void)RSqlDatabase::Delete(KTestDatabase1);
-	TInt err = TheDb.Create(KTestDatabase1, &KServerConfigString1);
+	(void)RSqlDatabase::Delete(TheNonSecureDbName);
+	TInt err = TheDb.Create(TheNonSecureDbName, &KServerConfigString1);
 	TEST2(err, KErrNone);
 	
 	//Create a test table and insert some records
@@ -1188,12 +1186,12 @@
 	
 	//Add 100 records to the table
 	for(TInt k=0;k<100;++k)
-	{
-	TBuf<100> sql;
-	sql.Format(_L("INSERT INTO A VALUES(%d, 'Dvorák')"), k + 1);
-	err = TheDb.Exec(sql);
-	TEST2(err, 1);
-	}
+		{
+		TBuf<100> sql;
+		sql.Format(_L("INSERT INTO A VALUES(%d, 'Dvorák')"), k + 1);
+		err = TheDb.Exec(sql);
+		TEST2(err, 1);
+		}
 	
 	//Update one record  
 	err = TheDb.Exec(_L("UPDATE A SET Name='dvorak1' WHERE ID = 50"));
@@ -1218,7 +1216,7 @@
 	PrintStats(start, end);
 	
 	TheDb.Close();
-	(void)RSqlDatabase::Delete(KTestDatabase1);
+	(void)RSqlDatabase::Delete(TheNonSecureDbName);
 }
 
 ///////////////////////////////////////////////////////////////////////////////////