ObjPgSQL  Check-in [2105581c29]

Overview
Comment:Do not depend on object literals for tests
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2105581c29e3e4c77be3a97cf53bef97ee84d3f314d705409faa949fab7e7118
User & Date: js on 2017-05-10 23:51:32
Other Links: manifest | tags
Context
2017-05-10
23:59
Add a license check-in: 406d3f822e user: js tags: trunk
23:51
Do not depend on object literals for tests check-in: 2105581c29 user: js tags: trunk
23:46
Move private methods to separate headers check-in: 6307a38198 user: js tags: trunk
Changes

Modified tests/tests.m from [28c8c03b77] to [d93a8fa5a0].

30
31
32
33
34
35
36

37

38
39
40
41





42
43
44
45
46
47
48
30
31
32
33
34
35
36
37

38
39
40


41
42
43
44
45
46
47
48
49
50
51
52







+
-
+


-
-
+
+
+
+
+







				    @"    id integer,"
				    @"    name varchar(255),"
				    @"    content text,"
				    @"    success boolean"
				    @")"];
	[connection executeCommand: @"INSERT INTO test (id, name, content) "
				    @"VALUES ($1, $2, $3)"
			parameters: [OFNumber numberWithInt: 1], @"foo",
			parameters: @1, @"foo", @"Hallo Welt!", nil];
				    @"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]);

	for (id row in result)