diff --git a/SQLClient.h b/SQLClient.h index cf40121..b13aca4 100644 --- a/SQLClient.h +++ b/SQLClient.h @@ -135,7 +135,7 @@ The gnustep-base package must have been built and installed. - You must hace sourced the GNUstep.sh script (from gnustep-make) to set + You must have sourced the GNUstep.sh script (from gnustep-make) to set up environment variables needed for building this. diff --git a/testPostgres.m b/testPostgres.m index 8952f89..5171e29 100644 --- a/testPostgres.m +++ b/testPostgres.m @@ -213,6 +213,18 @@ main() [NSData dataWithBytes: "" length: 0], @")", nil]; + [db execute: @"insert into xxx " + @"(k, char1, boolval, intval, when1, when2, b) " + @"values (" + @"'hello', ", + [db quote: [[NSString stringWithCString: "\"\\U2A11\""] propertyList]], + @",TRUE, " + @"1, ", + [NSDate date], @", ", + [NSDate date], @", ", + [NSData dataWithBytes: "" length: 0], + @")", + nil]; [db commit]; records = [db query: @"select * from xxx", nil];