Changeset 32


Ignore:
Timestamp:
30.10.2008 22:37:07 (11 years ago)
Author:
marcus
Message:

r17 | stittgen | 2008-01-30 15:59:13 +0100 (Mi, 30 Jan 2008) | 2 lines

Changed SQL statement in sfd2db into SQL-Standard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/seed_io/sfd2db.c

    r28 r32  
    33 *      ======== 
    44 * 
    5  * $Revision: 13 $, $Date: 2008-01-18 10:01:21 +0100 (Fr, 18 Jan 2008) $ 
     5 * $Revision: 17 $, $Date: 2008-01-30 15:59:13 +0100 (Mi, 30 Jan 2008) $ 
    66 * 
    77 * reads lines from sfdfile and creates commands to insert into sfdb database 
     
    192192                        } /*endif*/ 
    193193                        fclose( fp ); 
    194                         sprintf( shellcmd, "%s \"insert into pathtab values ( \'%d\', \'%s\' )\"", 
     194                        sprintf( shellcmd, "%s \"insert into pathtab values ( %d, \'%s\' )\"", 
    195195                                sfdbreq, pathid, abspath ); 
    196196                        /*printf( "--> executing %s\n", shellcmd );*/ 
     
    313313                /*sprintf( shellcmd, "cat %s", tmpfile );*/ 
    314314                /*system( shellcmd );*/ 
    315                 sprintf( shellcmd, "mysql sfdb <%s", tmpfile ); 
     315                sprintf( shellcmd, "sql sfdb <%s", tmpfile ); 
    316316                /*printf( "--> executing %s\n", shellcmd );*/ 
    317317                system( shellcmd ); 
Note: See TracChangeset for help on using the changeset viewer.