Make use of OF_SENTINEL.
FossilOrigin-Name: 455ca009cddd89b64802c95292b969127474f1dd22ede2ce56d5eba16fb1b517
This commit is contained in:
parent
9a98086e25
commit
a5aa71484f
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
- (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;
|
||||
|
|
2
test.m
2
test.m
|
@ -34,7 +34,7 @@ OF_APPLICATION_DELEGATE(Test)
|
|||
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"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue