<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>uncatched failed prepare statements in convert_datatree_shares_to_sql</title> 
  <pubDate>Fri, 10 Apr 2026 13:16:54 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7528</link> 
  <atom:link rel="self" type="application/rss+xml" title="uncatched failed prepare statements in convert_datatree_shares_to_sql" href="https://bugs.horde.org/ticket/7528/rss" /> 
  <description>uncatched failed prepare statements in convert_datatree_shares_to_sql</description> 
 
   
   
  <item> 
   <title>All convert_datatree_shares_to_sql scripts don&#039;t catch faile</title> 
   <description>All convert_datatree_shares_to_sql scripts don&#039;t catch failed prepare statements,

which may lead to an inconsistent database and cause a fatal php error,

trying to call the non existing function &quot;execute&quot; on a MDB2_Error object.



This is a patch for mnemo-h3-2.2.1

It catches the failed prepare statement on write sql statements (INSERT and DELETE)

and encapsulate them in a transaction to rollback on error. This is to keep the

database in an consistent state and to allow to rerun the script on errors with out

loosing or dublicating any shares. This patch also returns more informations as

&quot;Unkown Error&quot; is not a very usefull.



The following problems are still open as i did not need them to solve for me.



- This patch requieres the database to support transactions. I don&#039;t know if

  Horde supports any database that don&#039;t support transactions, but it should

  be cecked.



- This patch does not catch failed prepare statements on SELECT statements.

  This may result in the same fatal error.



</description> 
   <pubDate>Tue, 21 Oct 2008 08:15:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7528#t49858</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
