Enforce queries to be constant.
FossilOrigin-Name: 53f46b10cd4a35208fd4ee2e10dcdb9d21d70bc1b7665bf38d40a779706435c6
This commit is contained in:
parent
d22558fdcc
commit
dee1a1ddde
2 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@
|
|||
- (OFDictionary*)parameters;
|
||||
- (void)connect;
|
||||
- (void)reset;
|
||||
- (PGResult*)executeCommand: (OFString*)command;
|
||||
- (PGResult*)executeCommand: (OFString*)command
|
||||
- (PGResult*)executeCommand: (OFConstantString*)command;
|
||||
- (PGResult*)executeCommand: (OFConstantString*)command
|
||||
parameters: (id)firstParameter, ...;
|
||||
- (PGconn*)PG_connection;
|
||||
- (void)insertRow: (OFDictionary*)row
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
PQreset(conn);
|
||||
}
|
||||
|
||||
- (PGResult*)executeCommand: (OFString*)command
|
||||
- (PGResult*)executeCommand: (OFConstantString*)command
|
||||
{
|
||||
PGresult *result = PQexec(conn, [command UTF8String]);
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (PGResult*)executeCommand: (OFString*)command
|
||||
- (PGResult*)executeCommand: (OFConstantString*)command
|
||||
parameters: (id)parameter, ...
|
||||
{
|
||||
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue