Changeset 10060 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Nov 17, 2006, 2:19:43 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r9970 r10060 14 14 } 15 15 16 object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" );16 object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", -32); 17 17 if (!object) { 18 18 exit(EXIT_FAILURE); … … 29 29 { 30 30 psDB *dbh; 31 summitImfileRow *object; 32 33 dbh = psDBInit("localhost", "test", NULL, "test"); 34 if (!dbh) { 35 exit(EXIT_FAILURE); 36 } 37 38 object = summitImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string"); 39 if (!object) { 40 exit(EXIT_FAILURE); 41 } 42 43 if (!summitImfileInsertObject(dbh, object)) { 44 exit(EXIT_FAILURE); 45 } 46 47 psFree(object); 48 psDBCleanup(dbh); 49 } 50 51 { 52 psDB *dbh; 31 53 pzPendingExpRow *object; 32 54 … … 36 58 } 37 59 38 object = pzPendingExpRowAlloc("a string", "a string", "a string" , "a string", -32);60 object = pzPendingExpRowAlloc("a string", "a string", "a string"); 39 61 if (!object) { 40 62 exit(EXIT_FAILURE); … … 58 80 } 59 81 60 object = pzPendingImfileRowAlloc("a string", "a string", "a string", -32, "a string","a string", "a string", "a string");82 object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string"); 61 83 if (!object) { 62 84 exit(EXIT_FAILURE); … … 73 95 { 74 96 psDB *dbh; 97 pzDoneExpRow *object; 98 99 dbh = psDBInit("localhost", "test", NULL, "test"); 100 if (!dbh) { 101 exit(EXIT_FAILURE); 102 } 103 104 object = pzDoneExpRowAlloc("a string", "a string", "a string"); 105 if (!object) { 106 exit(EXIT_FAILURE); 107 } 108 109 if (!pzDoneExpInsertObject(dbh, object)) { 110 exit(EXIT_FAILURE); 111 } 112 113 psFree(object); 114 psDBCleanup(dbh); 115 } 116 117 { 118 psDB *dbh; 119 pzDoneImfileRow *object; 120 121 dbh = psDBInit("localhost", "test", NULL, "test"); 122 if (!dbh) { 123 exit(EXIT_FAILURE); 124 } 125 126 object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", "a string"); 127 if (!object) { 128 exit(EXIT_FAILURE); 129 } 130 131 if (!pzDoneImfileInsertObject(dbh, object)) { 132 exit(EXIT_FAILURE); 133 } 134 135 psFree(object); 136 psDBCleanup(dbh); 137 } 138 139 { 140 psDB *dbh; 75 141 newExpRow *object; 76 142 … … 80 146 } 81 147 82 object = newExpRowAlloc( "a string", "a string", "a string", "a string", "a string", -32);148 object = newExpRowAlloc(64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32); 83 149 if (!object) { 84 150 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
