equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-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". |
288 dbName3[0] = TChar(0xD800); |
288 dbName3[0] = TChar(0xD800); |
289 dbName3[1] = TChar(0xFC00); |
289 dbName3[1] = TChar(0xFC00); |
290 err = TheDb.Detach(dbName3); |
290 err = TheDb.Detach(dbName3); |
291 TEST2(err, KSqlErrGeneral); |
291 TEST2(err, KSqlErrGeneral); |
292 |
292 |
|
293 //Attach a non-existing database |
|
294 _LIT(KAttachDbFile5, "c:\\test\\zxcvbnm987654321.db"); |
|
295 _LIT(KAttachDb5, "zxcvbnm987654321"); |
|
296 err = TheDb.Attach(KAttachDbFile5, KAttachDb5); |
|
297 TEST2(err, KErrNotFound); |
|
298 |
293 TheDb.Close(); |
299 TheDb.Close(); |
294 } |
300 } |
295 |
301 |
296 /** |
302 /** |
297 @SYMTestCaseID SYSLIB-SQL-CT-1642 |
303 @SYMTestCaseID SYSLIB-SQL-CT-1642 |