IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 8, 2007, 3:43:24 PM (19 years ago)
Author:
jhoblitt
Message:

add S8|16 & U8|16 to psDBPackMySQLRow()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r10982 r10984  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2007-01-09 01:38:23 $
     14 *  @version $Revision: 1.127 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2007-01-09 01:43:24 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    12611261        // string
    12621262        switch (item->type) {
     1263        case PS_DATA_U8: {
     1264                bind[i].length  = 0;
     1265                bind[i].buffer  = &item->data.U8;
     1266                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U8)
     1267                                  ? (my_bool *)&isNull
     1268                                  : NULL;
     1269                break;
     1270            }
     1271        case PS_DATA_U16: {
     1272                bind[i].length  = 0;
     1273                bind[i].buffer  = &item->data.U16;
     1274                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U16)
     1275                                  ? (my_bool *)&isNull
     1276                                  : NULL;
     1277                break;
     1278            }
    12631279        case PS_DATA_U32: {
    12641280                bind[i].length  = 0;
     
    12731289                bind[i].buffer  = &item->data.U64;
    12741290                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U64)
     1291                                  ? (my_bool *)&isNull
     1292                                  : NULL;
     1293                break;
     1294            }
     1295        case PS_DATA_S8: {
     1296                bind[i].length  = 0;
     1297                bind[i].buffer  = &item->data.S8;
     1298                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S8)
     1299                                  ? (my_bool *)&isNull
     1300                                  : NULL;
     1301                break;
     1302            }
     1303        case PS_DATA_S16: {
     1304                bind[i].length  = 0;
     1305                bind[i].buffer  = &item->data.S16;
     1306                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S16)
    12751307                                  ? (my_bool *)&isNull
    12761308                                  : NULL;
     
    13911423        default: {
    13921424                psError(PS_ERR_BAD_PARAMETER_TYPE , true,
    1393                         "FIXME: Only type of "
    1394                         "PS_DATA_U32 (PS_DATA_S32), "
    1395                         "PS_DATA_U64 (PS_DATA_S64), "
    1396                         "PS_DATA_S32 (PS_DATA_S32), "
    1397                         "PS_DATA_S64 (PS_DATA_S64), "
    1398                         "PS_DATA_F32 (PS_DATA_F32), "
    1399                         "PS_DATA_F64 (PS_DATA_F64), "
    1400                         "PS_DATA_BOOL (PS_DATA_BOOL), "
    1401                         "PS_DATA_STRING "
    1402                         "and PS_DATA_TIME are supported.");
    1403 
     1425                        "FIXME: Unsupported data type");
    14041426                psFree(cursor);
    14051427
     
    15041526        default: {
    15051527                psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    1506                         "FIXME: Only type of PS_DATA_S32, PS_DATA_F32, PS_DATA_F64, PS_DATA_BOOL, "
    1507                         "and PS_DATA_STRING are supported, (not %d).", item->type);
     1528                        "FIXME: Unsupported data type %d", item->type);
    15081529
    15091530                psFree(query);
Note: See TracChangeset for help on using the changeset viewer.