From: Neil T. <nt...@us...> - 2006-07-16 23:13:09
|
Update of /cvsroot/pgsqlformac/pgCocoaDB/UnitTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7546/UnitTest Modified Files: pgCocoaDBSchemaTest.m Log Message: Add color to Explorer View, add index count function. Index: pgCocoaDBSchemaTest.m =================================================================== RCS file: /cvsroot/pgsqlformac/pgCocoaDB/UnitTest/pgCocoaDBSchemaTest.m,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pgCocoaDBSchemaTest.m 20 Jun 2006 16:26:52 -0000 1.11 --- pgCocoaDBSchemaTest.m 16 Jul 2006 23:13:06 -0000 1.12 *************** *** 69,76 **** STAssertTrue([conn errorDescription] == nil, @"Not able to '%@', %@.", sql, [conn errorDescription]); if (0 == [results count]) { // test database does not exist - sql = [NSString stringWithFormat:@"%s%@", "CREATE DATABASE ", PGCocoaTestDatabase]; NSLog(sql); [conn execQuery:sql]; --- 69,76 ---- STAssertTrue([conn errorDescription] == nil, @"Not able to '%@', %@.", sql, [conn errorDescription]); + sql = [NSString stringWithFormat:@"CREATE DATABASE %@ WITH ENCODING = 'UTF8' TABLESPACE = pg_default;", PGCocoaTestDatabase]; if (0 == [results count]) { // test database does not exist NSLog(sql); [conn execQuery:sql]; *************** *** 83,92 **** // add -DDROP_EXISTING_DATABASE=1 to the OTHER_CFLAGS in project builder // or you can uncomment the #define in the configuration area of this file. ! sql = [NSString stringWithFormat:@"%s%@", "DROP DATABASE ", PGCocoaTestDatabase]; ! NSLog(sql); ! [conn execQuery:sql]; STAssertTrue([conn errorDescription] == nil, @"Not able to '%@', %@.", sql, [conn errorDescription]); - sql = [NSString stringWithFormat:@"%s%@", "CREATE DATABASE ", PGCocoaTestDatabase]; NSLog(sql); [conn execQuery:sql]; --- 83,91 ---- // add -DDROP_EXISTING_DATABASE=1 to the OTHER_CFLAGS in project builder // or you can uncomment the #define in the configuration area of this file. ! NSString *sql1 = [NSString stringWithFormat:@"%s%@", "DROP DATABASE ", PGCocoaTestDatabase]; ! NSLog(sql1); ! [conn execQuery:sql1]; STAssertTrue([conn errorDescription] == nil, @"Not able to '%@', %@.", sql, [conn errorDescription]); NSLog(sql); [conn execQuery:sql]; |