persistentstorage/sql/TEST/t_sqldefect.cpp
changeset 29 cce6680bbf1c
parent 17 55f2396f6d25
child 55 44f437012c90
equal deleted inserted replaced
28:7a522c0700d3 29:cce6680bbf1c
  1392 	TInt err = stmnt.Prepare(sqlDb, KInsert);
  1392 	TInt err = stmnt.Prepare(sqlDb, KInsert);
  1393 	TEST2(err,KErrNone);
  1393 	TEST2(err,KErrNone);
  1394 	
  1394 	
  1395 	// Begin test
  1395 	// Begin test
  1396 	TInt fsError = KErrGeneral;
  1396 	TInt fsError = KErrGeneral;
  1397 	TInt count = 1;
  1397 	TInt count = 0;
  1398 	
  1398 	
  1399 	const TInt KMaxOps = 300;
  1399 	const TInt KMaxOps = 300;
  1400 
  1400 
  1401 	TSqlResourceProfiler pr(sqlDb);
  1401 	TSqlResourceProfiler pr(sqlDb);
  1402 	pr.Start(TSqlResourceProfiler::ESqlCounterOsCallDetails);
  1402 	pr.Start(TSqlResourceProfiler::ESqlCounterOsCallDetails);
  1632     TEST2(err, KErrNone);
  1632     TEST2(err, KErrNone);
  1633     TheDb.Close();
  1633     TheDb.Close();
  1634     }
  1634     }
  1635 
  1635 
  1636 /**
  1636 /**
  1637 Test defect where calling RSQLStatement::DeclaredColumnType() on a table which contains long (> 20 characters) column type names results in a USER 11 panic.
  1637 Test defect where calling RSQLStatement::DeclaredColumnType() on a table which contains long (> 20 characters) column type 
       
  1638 names results in a USER 11 panic.
  1638 This test should pass because these are valid SQL column types 
  1639 This test should pass because these are valid SQL column types 
  1639 */
  1640 */
  1640 void LongColumnTypeTest()
  1641 void LongColumnTypeTest()
  1641 	{
  1642 	{
  1642 	(void)RSqlDatabase::Delete(KTestDatabase3);
  1643 	(void)RSqlDatabase::Delete(KTestDatabase3);