Changeset 11867 for trunk/ippdb/tests/insertobject.c
- Timestamp:
- Feb 16, 2007, 4:42:59 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insertobject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insertobject.c
r11820 r11867 863 863 } 864 864 865 { 866 psDB *dbh; 867 p6InputScfileRow *object; 868 869 dbh = psDBInit("localhost", "test", NULL, "test"); 870 if (!dbh) { 871 exit(EXIT_FAILURE); 872 } 873 874 object = p6InputScfileRowAlloc(-32, -32, "a string", "a string"); 875 if (!object) { 876 exit(EXIT_FAILURE); 877 } 878 879 if (!p6InputScfileInsertObject(dbh, object)) { 880 exit(EXIT_FAILURE); 881 } 882 883 psFree(object); 884 psDBCleanup(dbh); 885 } 886 887 { 888 psDB *dbh; 889 p6SumScfileRow *object; 890 891 dbh = psDBInit("localhost", "test", NULL, "test"); 892 if (!dbh) { 893 exit(EXIT_FAILURE); 894 } 895 896 object = p6SumScfileRowAlloc(-32, "a string", "a string", "a string", 64.64, 64.64); 897 if (!object) { 898 exit(EXIT_FAILURE); 899 } 900 901 if (!p6SumScfileInsertObject(dbh, object)) { 902 exit(EXIT_FAILURE); 903 } 904 905 psFree(object); 906 psDBCleanup(dbh); 907 } 908 865 909 exit(EXIT_SUCCESS); 866 910 }
Note:
See TracChangeset
for help on using the changeset viewer.
