Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #14302 SQL error produces SQLite error (warning)
Submitted: 2008-07-07 11:10 UTC
From: estigy Assigned: quipo
Status: Closed Package: MDB2_Driver_sqlite (version 1.4.1)
PHP Version: 5.2.0 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-07-07 11:10 UTC] estigy (Günther Stadler)
Description: ------------ When a query is run that produces an SQL error, an error message is shown instead of query() returning an PEAR_Error object Test script: --------------- <?php require 'MDB2.php'; $db = MDB2::singleton('sqlite://:memory:'); $res = $db->query('do some unknown SQL-code'); ?> Expected result: ---------------- PEAR_Error in $res Actual result: -------------- Warning: sqlite_last_error() expects parameter 1 to be resource, integer given in /usr/share/php/MDB2/Driver/sqlite.php on line 532

Comments

 [2008-08-25 10:21 UTC] quipo (Lorenzo Alberton)
Actually this was a *connection* error not being returned. Fixed in CVS.