title: How to get more info on this PDO MySql error with Zend
body: <p>In my PHP script I run an update statement as follows:</p>
  
  <pre><code>$this-&gt;_db-&gt;update('names', $data, $this-&gt;_db-&gt;quoteInto('id = ?', $obj-&gt;id));
  </code></pre>
  
  <p>The db handle is a Zend_Db_Adapter_Abstract instance (of the PDO MySql variety).</p>
  
  <p>The problem is that the update is failing and I can't seem to get more info on the error.</p>
  
  <p>The error occurs within a try/catch block.  When I catch the error, I run:</p>
  
  <pre><code>$db-&gt;getProfiler()-&gt;getLastQueryProfile();
  </code></pre>
  
  <p>And the output is:</p>
  
  <pre><code>2012-11-14T22:20:02+11:00 INFO (6): Zend_Db_Profiler_Query Object
  (
      [_query:protected] =&gt; begin
      [_queryType:protected] =&gt; 64
      [_startedMicrotime:protected] =&gt; 1352892002.6064
      [_endedMicrotime:protected] =&gt; 1352892002.6066
      [_boundParams:protected] =&gt; Array
          (
          )
  </code></pre>
  
  <p>I know it says no parameters are bound, but I really don't think that's the case.  I think that somehow 'last query' is not what I think it is.</p>
  
  <p>Secondly, when I catch the error I also run:</p>
  
  <pre><code>$db-&gt;getConnection()-&gt;errorInfo();
  </code></pre>
  
  <p>And the output is:</p>
  
  <pre><code>2012-11-14T22:20:02+11:00 INFO (6): Array
  (
      [0] =&gt; 00000
      [1] =&gt; 
      [2] =&gt; 
  )
  </code></pre>
  
  <p>Obviously this is not very helpful.</p>
  
  <p>Any ideas?  How can I get more info on the error?</p>
  
  <p>Thanks!</p>