Re: mysql error message

From: Djamel Ouerdane (ouerdane@nbi.dk)
Date: Fri Aug 10 2001 - 04:53:55 EDT

  • Next message: Christian Holm Christensen: "Re: mysql error message"

    > My guess is, that it comes from
    >
    >   BrDbQuery* BrDbRevision::Insert(void)
    >
    > where
    >
    >  const Char_t*  Form(const Char_t* format, ...)
    >
    > used, and one of the arguments is
    >
    >   BrDb::Addr2String(fArray, fBytes)
    >
    > which can be rather long.
    >
    > Could you, Djam, please try to see if it is indeed in that method you
    > get the message from? Use gdb and break in the above method.  Thanks.
    > If this is indeed where the problem pops up, I may have an idea of how
    > to solve it.
    >
    
    
    
    Hi Christian, I think you have to concretise your idea :)
    
    here is the gdb word:
    
    Breakpoint 2, BrDb::Addr2String (addr=0x895b260, size=1280) at
    BrDb.cxx:375
    375       Char_t*   out   = new Char_t[2 * n + 1];
    (gdb) cont
    Continuing.
    Warning in <Format>: string truncated: 203, 26, 996612671, 997263740,...
    Error in <TMySQLServer::Query>: You have an error in your SQL syntax near
    ''35DE8143C10A9A433DCA844358E9874342708D43069196439C848543141E834310A88A43A6DB9D4'
    at line 1
    
    Breakpoint 2, BrDb::Addr2String (addr=0x895bb58, size=1280) at
    BrDb.cxx:375
    375       Char_t*   out   = new Char_t[2 * n + 1];
    (gdb)
    
    
    
    Djam
    



    This archive was generated by hypermail 2b30 : Fri Aug 10 2001 - 04:54:20 EDT