Changeset 496

Show
Ignore:
Timestamp:
10/02/09 15:32:00 (15 years ago)
Author:
bhilburn
Message:

Fixing SQL comma splice.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/cbr.h

    r495 r496  
    132132    command = "CREATE TABLE " + tablename + "("; 
    133133    for(size_t i = 0; i < numColumns; i++) { 
    134         command += _cols[i] + " FLOAT "; 
     134        command += _cols[i] + " FLOAT"; 
    135135 
    136136        /* If this column is not the last entry, add a comma to the command in 
     
    162162    command = "CREATE TABLE " + tablename + "("; 
    163163    for(size_t i = 0; i < numColumns; i++) { 
    164         command += _cols[i] + " FLOAT "; 
     164        command += _cols[i] + " FLOAT"; 
     165 
     166        /* If this column is not the last entry, add a comma to the command in 
     167         * preperation for the next entry. */ 
     168        if(j != _primlen - 1) 
     169            command += ", "; 
    165170    } 
    166171