[mythtv-commits] Ticket #6683: mysql error with mythtv trunk (incorrect arguments to mysql_stmt_execute) Qt 4.5

MythTV mythtv at cvs.mythtv.org
Wed Jul 1 04:08:01 UTC 2009

#6683: mysql error with mythtv trunk (incorrect arguments to mysql_stmt_execute)
Qt 4.5
 Reporter:  nneul at neulinger.org  |        Owner:  ijr    
     Type:  defect               |       Status:  new    
 Priority:  major                |    Milestone:  unknown
Component:  MythTV - General     |      Version:  head   
 Severity:  high                 |   Resolution:         
  Mlocked:  0                    |  

Comment(by sphery <mtdean at thirdcontact.com>):

 This very much looks like a problem with the Qt-MySQL driver
 build/packaging/dependencies.  Myth does not use the MySQL C API at all--
 instead using the Qt-MySQL drivers--so the problem is occurring at a lower
 level (i.e. in the Qt-MySQL drivers).

 While the Qt4.5 Qt-MySQL drivers--unlike older versions--attempt to always
 execute statements as prepared statements (and, on failure fall back to
 non-prepared statements), and since this particular error, "Incorrect
 arguments to mysql_stmt_execute," generally occurs on execution of
 prepared statements, it may seem natural to assume it may be a newly-
 uncovered bug identified by Qt4.5 driver's penchant for executing all
 statements as prepared statements.  However, in this case, the particular
 statements you've quoted as erroring are ones that we have always executed
 as prepared statements ( "DELETE FROM settings WHERE value = ? AND
 hostname = ? ;" and "INSERT INTO settings (value,data,hostname) VALUES (
 ?, ?, ? );" ), so the code is known to work.  That also means that the
 failure isn't a false failure due to the lastError() not being reset after
 the driver's failed attempt to use prepared statements to execute a
 statement that MySQL doesn't support executing as a prepared statement
 (because both of these statements are supported as prepared statements).

 There are bug reports against MySQL where the given error was caused by
 improper packaging ( http://bugs.mysql.com/bug.php?id=14988 ) or compiling
 with incorrect optimizations ( http://bugs.mysql.com/bug.php?id=19694 and
 http://bugs.mysql.com/bug.php?id=44842 and others ).  Please check with
 other MythTV trunk/Qt4.5 Mandriva users to find out whether they've
 encountered similar issues and if not, find out what they did differently
 with package versions/installation, or if so, forward the issue upstream
 to Mandriva as it's very unlikely to be a MythTV issue.  Thanks.

Ticket URL: <http://svn.mythtv.org/trac/ticket/6683#comment:2>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list