[racktables-users] PDOException in 0.19.1

  • From: Jens Bech Madsen <jbma@xxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Fri, 4 Mar 2011 13:43:37 +0100

Hi all

I just did a fresh install of 0.19.1 to try out the new virtual stuff and it 
all looks great. However, I cannot link servers and switches because whenever I 
try to do that I get the following error:

Pdo exception: PDOException
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other 
unbuffered queries are active. Consider using PDOStatement::fetchAll(). 
Alternatively, if your code is only ever going to run against mysql, you may 
enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY 
attribute. (HY000)
at file /var/www/html/RackTables-0.19.1/wwwroot/inc/database.php, line 2618
/var/www/html/RackTables-0.19.1/wwwroot/inc/database.php:2618 prepare('INSERT 
INTO Link (porta, portb, cable) VALUES (?, ?, ?)')
/var/www/html/RackTables-0.19.1/wwwroot/inc/database.php:1192 
usePreparedInsertBlade('Link', Array
(
    [porta] => 65
    [portb] => 91
    [cable] =>
)
)
/var/www/html/RackTables-0.19.1/wwwroot/inc/ophandlers.php:572 linkPorts('65', 
'91', '')
: linkPortForObject()
/var/www/html/RackTables-0.19.1/wwwroot/process.php:37 
call_user_func('linkPortForObject')
Error info:
Array
(
    [0] => HY000
    [1] => 2014
    [2] => Cannot execute queries while other unbuffered queries are active.  
Consider using PDOStatement::fetchAll().  Alternatively, if your code is only 
ever going to run against mysql, you may enable query buffering by setting the 
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
)


Is this a known problem or should I report it in Mantis?


Thanks,
Jens


Other related posts: