Menu

Syntax errors in query messes up sendmail

Help
Anonymous
2003-06-04
2003-06-19
  • Anonymous

    Anonymous - 2003-06-04

    I sometimes get errors like the following...

    Jun  4 17:47:39 mail sendmail[28667]: libnss_mysql: mysql_query failed: You have an error in your SQL syntax near ''njdmc:\\documents.and.settings\\iv\\my.documents\\affiliates\\ivo-email\\st' at line 1

    libnss_mysql seems to choke on bad data.   To get around this I restart mysql. 

    Is there a better way?

     
    • Ben Goodwin

      Ben Goodwin - 2003-06-04

      I've actually experienced this myself.  There must be a bug in the way I'm handling an snprintf or something ... I'll need to look at it and fix it..
      Restarting sendmail fixed the problem for me, BTW.. restarting MySQL probably just caused the sendmail clients to stop trying due to a down MySQL server.. but restarting sendmail (parent and all children) should clear it up.
      I've got a trace file from when mine did that.. so I'll log a bug and take a look at fixing it ...

       
    • Ben Goodwin

      Ben Goodwin - 2003-06-19

      You'll be happy to know that I've released 0.9 which fixes this problem.  Let me know if you need anything else.

       

Log in to post a comment.