Changeset 3154 for trunk/archive/psdb/test.c
- Timestamp:
- Feb 7, 2005, 4:55:32 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/psdb/test.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/psdb/test.c
r3126 r3154 93 93 94 94 md = psMetadataAlloc(); 95 item = psMetadataItemAlloc("color", PS_TYPE_PTR, PS_META_STR, NULL, " purple");95 item = psMetadataItemAlloc("color", PS_TYPE_PTR, PS_META_STR, NULL, "brown"); 96 96 psMetadataAddItem(md, item, 0); 97 97 psFree(item); 98 98 99 psDBInsertRow(dbh, "horses", md); 99 if (psDBInsertRow(dbh, "horses", md)) { 100 printf("psDBInsertRow succeeded\n"); 101 } 100 102 101 103 psFree(md); 104 105 //psDBDumpRows(); 106 resultSet = psDBDumpRows(dbh, "horses"); 107 psFree(resultSet); 102 108 103 109 // close db
Note:
See TracChangeset
for help on using the changeset viewer.
