Changeset a41d53d


Ignore:
Timestamp:
Jun 8, 2010 10:12:58 AM (7 years ago)
Author:
www-data <www-data@…>
Branches:
master, experimental, feature_CIS, feature_PetascopeSecore, feature_cmake, feature_rasdapy, feature_wcps2, fixes, release_8.5, release_9.0, release_9.1, release_9.2, release_9.3, release_9.4, release_9.5
Children:
e1dbd9b
Parents:
c542ee5
git-author:
Keshab Raj Neupane <neupane.keshab@…> (09/04/09 23:42:40)
git-committer:
www-data <www-data@…> (06/08/10 10:12:58)
Message:

Fixed compile warnings in rasdaman/relblobif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • relblobif/blobtile.pgc

    r8f27e65 ra41d53d  
    123123        indbmyoid = myOId.getCounter();
    124124
    125         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %d", indbmyoid );
     125        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %ld", indbmyoid );
    126126        TALK( pgQuery );
    127127        pgResult = PQexec( pgConn, pgQuery );
     
    180180#endif //NOTYET
    181181        // alternative solution for now:
    182         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "UPDATE RAS_TILES SET DataFormat = %d WHERE BlobId = %d", dataformat, indbmyoid );
     182        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "UPDATE RAS_TILES SET DataFormat = %d WHERE BlobId = %ld", dataformat, indbmyoid );
    183183        TALK( pgQuery );
    184184        pgResult = PQexec( pgConn, pgQuery );
     
    273273        // alternative solution for now:
    274274        // (2) --- insert tuple into db
    275         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "INSERT INTO RAS_TILES ( BlobId, DataFormat, Tile) VALUES  ( %d, %d, %d )", indbmyOId2, dataformat2, blobOid );
     275        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "INSERT INTO RAS_TILES ( BlobId, DataFormat, Tile) VALUES  ( %ld, %d, %d )", indbmyOId2, dataformat2, blobOid );
    276276        TALK( pgQuery );
    277277        pgResult = PQexec( pgConn, pgQuery );
     
    331331*/
    332332        char pgQuery[SQL_QUERY_BUFFER_SIZE];
    333         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %d", blobId );
     333        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %ld", blobId );
    334334        TALK( pgQuery );
    335335        PGresult *pgResult = PQexec( pgConn, pgQuery );
     
    448448#endif NOTYET
    449449*/
    450                 (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %d", indbmyOId5 );
     450                (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile FROM RAS_TILES WHERE BlobId = %ld", indbmyOId5 );
    451451                TALK( pgQuery );
    452452                pgResult = PQexec( pgConn, pgQuery );
     
    500500#endif NOTYET
    501501*/
    502                 (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DELETE FROM RAS_TILES WHERE BlobId = %d", indbmyOId5 );
     502                (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DELETE FROM RAS_TILES WHERE BlobId = %ld", indbmyOId5 );
    503503                TALK( pgQuery );
    504504                pgResult = PQexec( pgConn, pgQuery );
     
    549549#endif NOTYET
    550550*/
    551                 (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DECLARE DeleteLoop CURSOR FOR SELECT Tile FROM RAS_TILES WHERE %d <= BlobId AND BlobId <= %d", indbmyOId5, indbmyOId6 );
     551                (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DECLARE DeleteLoop CURSOR FOR SELECT Tile FROM RAS_TILES WHERE %ld <= BlobId AND BlobId <= %ld", indbmyOId5, indbmyOId6 );
    552552                TALK( pgQuery );
    553553                pgResult = PQexec( pgConn, pgQuery );
     
    622622#endif NOTYET
    623623*/
    624                 (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DELETE FROM RAS_TILES WHERE %d <= BlobId AND BlobId <= %d", indbmyOId5, indbmyOId6 );
     624                (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "DELETE FROM RAS_TILES WHERE %ld <= BlobId AND BlobId <= %ld", indbmyOId5, indbmyOId6 );
    625625                TALK( pgQuery );
    626626                pgResult = PQexec( pgConn, pgQuery );
     
    691691*/
    692692        char pgQuery[SQL_QUERY_BUFFER_SIZE];
    693         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile, DataFormat FROM RAS_TILES WHERE BlobId = %d", indbmyOId3 );
     693        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "SELECT Tile, DataFormat FROM RAS_TILES WHERE BlobId = %ld", indbmyOId3 );
    694694        TALK( pgQuery );
    695695        pgResult = PQexec( pgConn, pgQuery );
Note: See TracChangeset for help on using the changeset viewer.