Changeset 15569 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Nov 9, 2007, 3:55:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r15530 r15569 1061 1061 } 1062 1062 1063 { 1064 psDB *dbh; 1065 calDBRow *object; 1066 1067 dbh = psDBInit("localhost", "test", NULL, "test"); 1068 if (!dbh) { 1069 exit(EXIT_FAILURE); 1070 } 1071 1072 object = calDBRowAlloc(-64, "a string", "a string"); 1073 if (!object) { 1074 exit(EXIT_FAILURE); 1075 } 1076 1077 if (!calDBInsertObject(dbh, object)) { 1078 exit(EXIT_FAILURE); 1079 } 1080 1081 psFree(object); 1082 psDBCleanup(dbh); 1083 } 1084 1085 { 1086 psDB *dbh; 1087 calRunRow *object; 1088 1089 dbh = psDBInit("localhost", "test", NULL, "test"); 1090 if (!dbh) { 1091 exit(EXIT_FAILURE); 1092 } 1093 1094 object = calRunRowAlloc(-64, "a string", "a string", "a string"); 1095 if (!object) { 1096 exit(EXIT_FAILURE); 1097 } 1098 1099 if (!calRunInsertObject(dbh, object)) { 1100 exit(EXIT_FAILURE); 1101 } 1102 1103 psFree(object); 1104 psDBCleanup(dbh); 1105 } 1106 1063 1107 exit(EXIT_SUCCESS); 1064 1108 }
Note:
See TracChangeset
for help on using the changeset viewer.
