persistentstorage/sql/TEST/t_sqlconfig.cpp
branchRCL_3
changeset 11 211563e4b919
parent 0 08ec8eefde2f
equal deleted inserted replaced
10:31a8f755b7fe 11:211563e4b919
     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".
   428 	AssertConfigPrmValues(TheDb, 40, 2048, KDefaultEncoding);
   428 	AssertConfigPrmValues(TheDb, 40, 2048, KDefaultEncoding);
   429 	TheDb.Close();
   429 	TheDb.Close();
   430 	(void)RSqlDatabase::Delete(KTestDbName2);
   430 	(void)RSqlDatabase::Delete(KTestDbName2);
   431 	(void)RSqlDatabase::Delete(KTestDbName);
   431 	(void)RSqlDatabase::Delete(KTestDbName);
   432 	//Create 2 databases with different configuration parameters
   432 	//Create 2 databases with different configuration parameters
   433 	_LIT8(KCfgStr2_1, "cache_size = 50; page_size = 512; encoding = UTF-16");
   433 	_LIT8(KCfgStr2_1, "cache_size = 50; page_size = 512; encoding = \"UTF-16\"");
   434 	_LIT8(KCfgStr2_2, "cache_size = 80; page_size = 4096; encoding = UTF-8");
   434 	_LIT8(KCfgStr2_2, "cache_size = 80; page_size = 4096; encoding = \"UTF-8\"");
   435 	err = TheDb.Create(KTestDbName, &KCfgStr2_1);
   435 	err = TheDb.Create(KTestDbName, &KCfgStr2_1);
   436 	TEST2(err, KErrNone);
   436 	TEST2(err, KErrNone);
   437 	err = TheDb2.Create(KTestDbName2, &KCfgStr2_2);
   437 	err = TheDb2.Create(KTestDbName2, &KCfgStr2_2);
   438 	TEST2(err, KErrNone);
   438 	TEST2(err, KErrNone);
   439 	AssertConfigPrmValues(TheDb, 50, 512, TSqlSrvConfigParams::EEncUtf16);
   439 	AssertConfigPrmValues(TheDb, 50, 512, TSqlSrvConfigParams::EEncUtf16);