IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 11, 2007, 3:35:04 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.73

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/insertobject.c

    r11030 r11045  
    168168        }
    169169
    170         object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16);
     170        object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32);
    171171        if (!object) {
    172172            exit(EXIT_FAILURE);
     
    190190        }
    191191
    192         object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16);
     192        object = newImfileRowAlloc("a string", "a string", "a string", "a string");
    193193        if (!object) {
    194194            exit(EXIT_FAILURE);
     
    205205    {
    206206        psDB            *dbh;
    207         rawDetrendExpRow *object;
    208 
    209         dbh = psDBInit("localhost", "test", NULL, "test");
    210         if (!dbh) {
    211             exit(EXIT_FAILURE);
    212         }
    213 
    214         object = rawDetrendExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z");
    215         if (!object) {
    216             exit(EXIT_FAILURE);
    217         }
    218 
    219         if (!rawDetrendExpInsertObject(dbh, object)) {
    220             exit(EXIT_FAILURE);
    221         }
    222 
    223         psFree(object);
    224         psDBCleanup(dbh);
    225     }
    226 
    227     {
    228         psDB            *dbh;
    229         rawScienceExpRow *object;
    230 
    231         dbh = psDBInit("localhost", "test", NULL, "test");
    232         if (!dbh) {
    233             exit(EXIT_FAILURE);
    234         }
    235 
    236         object = rawScienceExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z");
    237         if (!object) {
    238             exit(EXIT_FAILURE);
    239         }
    240 
    241         if (!rawScienceExpInsertObject(dbh, object)) {
     207        rawExpRow       *object;
     208
     209        dbh = psDBInit("localhost", "test", NULL, "test");
     210        if (!dbh) {
     211            exit(EXIT_FAILURE);
     212        }
     213
     214        object = rawExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16);
     215        if (!object) {
     216            exit(EXIT_FAILURE);
     217        }
     218
     219        if (!rawExpInsertObject(dbh, object)) {
    242220            exit(EXIT_FAILURE);
    243221        }
     
    256234        }
    257235
    258         object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z");
     236        object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", -16);
    259237        if (!object) {
    260238            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.