[mythtv] SQL prepare / bindValue patch for mythtv

David =?unknown-8bit?Q?H=E4rdeman?= david at 2gen.com
Wed Dec 8 21:50:56 UTC 2004


On Wed, Dec 08, 2004 at 12:15:28AM -0500, Isaac Richards wrote:
>Looks ok - I'll be applying this tomorrow night.  Don't want to have _too_ 
>many big changes in one night. =)

Cool, one more thing I've found meanwhile...

lines 722 and 723 in libs/libmyth/settings.cpp:
query.prepare("SELECT * FROM :TABLE WHERE " + whereClause() + ";");
query.bindValue(":TABLE", table);

needs to be:
query.prepare("SELECT * FROM " + table " WHERE " + whereClause() + ";");

Apparently table names can't be bound with bindValue.

Re,
David


More information about the mythtv-dev mailing list