Do not depend on object literals for tests
FossilOrigin-Name: 2105581c29e3e4c77be3a97cf53bef97ee84d3f314d705409faa949fab7e7118
This commit is contained in:
parent
308199f21e
commit
68cf8cd242
1 changed files with 7 additions and 3 deletions
|
@ -34,11 +34,15 @@ OF_APPLICATION_DELEGATE(Test)
|
||||||
@")"];
|
@")"];
|
||||||
[connection executeCommand: @"INSERT INTO test (id, name, content) "
|
[connection executeCommand: @"INSERT INTO test (id, name, content) "
|
||||||
@"VALUES ($1, $2, $3)"
|
@"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) "
|
[connection executeCommand: @"INSERT INTO test (id, content, success) "
|
||||||
@"VALUES ($1, $2, $3)"
|
@"VALUES ($1, $2, $3)"
|
||||||
parameters: @2, @2, @YES, nil];
|
parameters: [OFNumber numberWithInt: 2],
|
||||||
[connection insertRow: @{ @"content": @"Hallo!", @"name": @"foo" }
|
[OFNumber numberWithInt: 2],
|
||||||
|
[OFNumber numberWithBool: true], nil];
|
||||||
|
[connection insertRow: [OFDictionary dictionaryWithKeysAndObjects:
|
||||||
|
@"content", @"Hallo!", @"name", @"foo", nil]
|
||||||
intoTable: @"test"];
|
intoTable: @"test"];
|
||||||
|
|
||||||
result = [connection executeCommand: @"SELECT * FROM test"];
|
result = [connection executeCommand: @"SELECT * FROM test"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue