Index: PGConnection.h ================================================================== --- PGConnection.h +++ PGConnection.h @@ -18,11 +18,11 @@ - (OFDictionary*)parameters; - (void)connect; - (void)reset; - (PGResult*)executeCommand: (OFConstantString*)command; - (PGResult*)executeCommand: (OFConstantString*)command - parameters: (id)firstParameter, ...; + parameters: (id)firstParameter, ... OF_SENTINEL; - (PGconn*)PG_connection; - (void)insertRow: (OFDictionary*)row intoTable: (OFString*)table; - (void)insertRows: (OFArray*)rows intoTable: (OFString*)table; Index: test.m ================================================================== --- test.m +++ test.m @@ -32,11 +32,11 @@ [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES ($1, $2, $3)" parameters: @1, @"foo", @"Hallo Welt!", nil]; [connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" - parameters: @2, @2, @YES]; + parameters: @2, @2, @YES, nil]; [connection insertRow: @{ @"content": @"Hallo!", @"name": @"foo" } intoTable: @"test"]; result = [connection executeCommand: @"SELECT * FROM test"]; of_log(@"%@", result);