Index: tests/tests.m ================================================================== --- tests/tests.m +++ tests/tests.m @@ -32,15 +32,19 @@ @" content text," @" success boolean" @")"]; [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES ($1, $2, $3)" - parameters: @1, @"foo", @"Hallo Welt!", nil]; + parameters: [OFNumber numberWithInt: 1], @"foo", + @"Hallo Welt!", nil]; [connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" - parameters: @2, @2, @YES, nil]; - [connection insertRow: @{ @"content": @"Hallo!", @"name": @"foo" } + parameters: [OFNumber numberWithInt: 2], + [OFNumber numberWithInt: 2], + [OFNumber numberWithBool: true], nil]; + [connection insertRow: [OFDictionary dictionaryWithKeysAndObjects: + @"content", @"Hallo!", @"name", @"foo", nil] intoTable: @"test"]; result = [connection executeCommand: @"SELECT * FROM test"]; of_log(@"%@", result); of_log(@"JSON: %@", [result JSONRepresentation]);