IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2005, 4:40:21 PM (21 years ago)
Author:
jhoblitt
Message:

fix dereference error in psDBSelectRows()
add psDBDumpCols()
add psDBMySQLToPType()

File:
1 edited

Legend:

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

    r3188 r3202  
    147147    }
    148148
    149     // psDBInsertOneRow();
     149    // psDBInsertOneRow()
    150150    {
    151151        psMetadata      *md;
     
    162162    }
    163163
    164     // psDBInsertRows();
     164    // psDBInsertRows()
    165165    {
    166166        psArray         *rowSet;
     
    197197    }
    198198
    199     // psDBDumpRows();
     199    // psDBDumpRows()
    200200    {
    201201        psArray         *resultSet;
     
    206206    }
    207207
    208     // psDBUpdateRows();
     208    // psDBDumpCols()
     209    {
     210        psMetadata      *columns;
     211        psMetadataItem  *item;
     212        psListIterator  *cursor;
     213
     214        columns = psDBDumpCols(dbh, "horse");
     215        OK(columns, "psDBDumpCols()");
     216
     217        cursor = psListIteratorAlloc(columns->list, 0);
     218
     219        while ((item = psListGetNext(cursor))) {
     220            printf("column name is: %s\n", item->name);
     221        }
     222
     223        psFree(cursor);
     224        psFree(columns);
     225    }
     226
     227    // psDBUpdateRows()
    209228    {
    210229        psMetadata      *where;
Note: See TracChangeset for help on using the changeset viewer.