[mythtv] DB Error in logs [again, new poster]

Isaac Richards ijr at case.edu
Fri Dec 24 07:46:05 UTC 2004


On Friday 24 December 2004 02:22 am, Jay wrote:
> Greetings, (1st post)
>
> As of CVS 23-Dec-2004, line 2014 of mythcontext.cpp,
> MythContext::LogEntry starts out:
>
>   result.prepare("INSERT INTO mythlog (module, priority, "
>                  "logdate, host, message, details) "
>                  "values (:MODULE, :PRIORITY, now(), :HOSTNAME, "
>                  ":MESSAGE, :DETAILS );";
>
> .. but the 'details' string is never escaped/quoted, which can result in
> statements like:

It doesn't need to be quoted or escaped, prepare/bindValue takes care of that 
internally.

> This was pointed out to mythtv-users by Bill Oberman on December 2, but
> there was no reply.

Because he was talking about 0.16, and that bug was fixed months ago?

Isaac


More information about the mythtv-dev mailing list