IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2005, 4:55:32 PM (21 years ago)
Author:
jhoblitt
Message:

misc code tidying
fix memory leak in STRINGARRAYTOPTYPE macro
completed psDBInsertRow()
add psDBDumpRows()
add support for NULL where in psDBGenerateInsertRowSQL()
rename psDBGetPTypeNull() to psDBGetPTypeNaN()
add psDBIsPTypeNaN()
rename psDBAllocMySQLType() to psDBMySQLTypeAlloc()
add psDBAddVoidToLookupTable()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/psdb/test.c

    r3126 r3154  
    9393
    9494    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");
    9696    psMetadataAddItem(md, item, 0);
    9797    psFree(item);
    9898
    99     psDBInsertRow(dbh, "horses", md);
     99    if (psDBInsertRow(dbh, "horses", md)) {
     100            printf("psDBInsertRow succeeded\n");
     101    }
    100102
    101103    psFree(md);
     104
     105    //psDBDumpRows();
     106    resultSet = psDBDumpRows(dbh, "horses");
     107    psFree(resultSet);
    102108
    103109    // close db
Note: See TracChangeset for help on using the changeset viewer.