This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issues with gcc 3.4.2


* Schouten, Frits JF (Frits.Schouten@bluescopesteel.com) [20050117 23:06]:

> The only way to solve this issue is to put the whole SQL query on the one line.

No, use ANSI string concatenation, i.e. something like:

         sprintf(q,
            "UPDATE delays "
            "SET    item_2         = %f,"
            "       event_code     = %d,"
            "       heat_nr        = %d "
            "WHERE  id         	   = %d;",
                pData->speed, pData->event_code, pData->heat_nr,tmp_id);

Insert '\n' where line breaks are needed.

Philipp


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]