Differences From Artifact [bddcb08bb6]:
- File tests/Tests.m — part of check-in [31c5599df5] at 2024-08-11 09:22:44 on branch trunk — Change license to unmodified ISC (user: js, size: 2608) [annotate] [blame] [check-ins using]
To Artifact [be5bedb02c]:
- File
tests/Tests.m
— part of check-in
[30633656b0]
at
2024-08-11 17:22:05
on branch trunk
— Remove -[PGConnection insertRow:]
It can be used in a way that leads to security issues, so it's better
not to have it at all. (user: js, size: 2458) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
55 56 57 58 59 60 61 | parameters: [OFNumber numberWithInt: 1], @"foo", @"Hallo Welt!", nil]; [_connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" parameters: [OFNumber numberWithInt: 2], [OFNumber numberWithInt: 2], [OFNumber numberWithBool: true], nil]; | < < < | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | parameters: [OFNumber numberWithInt: 1], @"foo", @"Hallo Welt!", nil]; [_connection executeCommand: @"INSERT INTO test (id, content, success) " @"VALUES ($1, $2, $3)" parameters: [OFNumber numberWithInt: 2], [OFNumber numberWithInt: 2], [OFNumber numberWithBool: true], nil]; result = [_connection executeCommand: @"SELECT * FROM test"]; OFLog(@"%@", result); OFLog(@"JSON: %@", [result JSONRepresentation]); for (id row in result) for (id col in row) |
︙ | ︙ |